Allow the X-Requested-With header in CORS on the OAuth endpoints

This commit is contained in:
Quentin Gliech committed 2025-05-07 14:50:03 +02:00
1 parent c326d76e2a
commit 514cd8e389
1 file changed
+2
+2
View File
@@ -249,6 +249,8 @@ where
ACCEPT_LANGUAGE,
CONTENT_LANGUAGE,
CONTENT_TYPE,
// Swagger will send this header, so we have to allow it to avoid CORS errors
HeaderName::from_static("x-requested-with"),
])
.max_age(Duration::from_secs(60 * 60)),
)