summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2022-09-14 13:41:56 +0000
committerSanto Cariotti <santo@dcariotti.me>2022-09-14 13:41:56 +0000
commitef8a0f433878b01cd247a009ae93d95b559d0abc (patch)
tree9695d0ca643d8f81f84e31801372e67c18ed5d10 /src/main.rs
parent0bd0b7c38fc0be58dfb79bc42cc7116c8ab41341 (diff)
Add "Authorization" in the allowed CORS headers list
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
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),
)
}