From 450b81ca13452d0046f16db1850a8fa9822abf43 Mon Sep 17 00:00:00 2001 From: ManyTheFish Date: Mon, 3 Jan 2022 13:41:12 +0100 Subject: [PATCH] Bug(CORS): Add missing allowed headers fix #2040 --- meilisearch-http/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/meilisearch-http/src/lib.rs b/meilisearch-http/src/lib.rs index 01a74887b..d4f251ec1 100644 --- a/meilisearch-http/src/lib.rs +++ b/meilisearch-http/src/lib.rs @@ -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