diff options
| author | Santo Cariotti <santo@dcariotti.me> | 2022-09-14 13:41:56 +0000 |
|---|---|---|
| committer | Santo Cariotti <santo@dcariotti.me> | 2022-09-14 13:41:56 +0000 |
| commit | ef8a0f433878b01cd247a009ae93d95b559d0abc (patch) | |
| tree | 9695d0ca643d8f81f84e31801372e67c18ed5d10 /src/main.rs | |
| parent | 0bd0b7c38fc0be58dfb79bc42cc7116c8ab41341 (diff) | |
Add "Authorization" in the allowed CORS headers list
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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), ) } |
