From 595250c93e3792b00d18b7e7cdc4ceb1317bcc87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9mentine=20Urquizar?= Date: Wed, 5 Jan 2022 15:26:17 +0100 Subject: [PATCH] Allow any header for CORS --- meilisearch-http/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meilisearch-http/src/lib.rs b/meilisearch-http/src/lib.rs index d4f251ec1..f8e2357fd 100644 --- a/meilisearch-http/src/lib.rs +++ b/meilisearch-http/src/lib.rs @@ -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