Initial version of CORS support

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

No files matched your search

+2 -1
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