From ef8a0f433878b01cd247a009ae93d95b559d0abc Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Wed, 14 Sep 2022 15:41:56 +0200 Subject: Add "Authorization" in the allowed CORS headers list --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 8706153..13f8054 100644 --- a/src/main.rs +++ b/src/main.rs @@ -92,7 +92,7 @@ async fn create_app() -> Router { Method::PUT, Method::DELETE, ]) - .allow_headers(vec![header::CONTENT_TYPE]) + .allow_headers(vec![header::CONTENT_TYPE, header::AUTHORIZATION]) .allow_origin(Any), ) } -- cgit v1.2.3-71-g8e6c