Allow any header for CORS

This commit is contained in:
Clémentine Urquizar 2022-01-05 15:26:17 +01:00
parent d53c61a6d0
commit 595250c93e
No known key found for this signature in database
GPG Key ID: D8E7CC7422E77E1A

View File

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