Bug(CORS): Add missing allowed headers

fix #2040
This commit is contained in:
ManyTheFish 2022-01-03 13:41:12 +01:00
parent 2f3faadcbf
commit 450b81ca13

View File

@ -143,6 +143,7 @@ macro_rules! create_app {
.wrap(
Cors::default()
.send_wildcard()
.allowed_headers(vec!["content-type", "Authorization"])
.allow_any_origin()
.allow_any_method()
.max_age(86_400), // 24h