Initial version of CORS support

This commit is contained in:
vpl
2019-09-01 13:00:12 +02:00
parent 7dcf18151d
commit 16d88402cb
2 changed files with 37 additions and 1 deletions

View File

@ -250,7 +250,8 @@ fn launch_rocket() {
let rocket = rocket
.manage(db::init_pool())
.manage(api::start_notification_server())
.attach(util::AppHeaders());
.attach(util::AppHeaders())
.attach(util::CORS());
// Launch and print error if there is one
// The launch will restore the original logging level