mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-30 00:55:00 +08:00
Merge #2056
2056: Allow any header for CORS r=curquiza a=curquiza Bug fix: trigger a CORS error when trying to send the `User-Agent` header via the browser `@bidoubiwa` thanks for the bug report! Co-authored-by: Clémentine Urquizar <clementine@meilisearch.com>
This commit is contained in:
commit
0d2a358cc2
@ -143,7 +143,7 @@ macro_rules! create_app {
|
|||||||
.wrap(
|
.wrap(
|
||||||
Cors::default()
|
Cors::default()
|
||||||
.send_wildcard()
|
.send_wildcard()
|
||||||
.allowed_headers(vec!["content-type", "Authorization"])
|
.allow_any_header()
|
||||||
.allow_any_origin()
|
.allow_any_origin()
|
||||||
.allow_any_method()
|
.allow_any_method()
|
||||||
.max_age(86_400), // 24h
|
.max_age(86_400), // 24h
|
||||||
|
Loading…
Reference in New Issue
Block a user