mirror of
https://github.com/element-hq/matrix-authentication-service.git
synced 2026-10-23 17:24:01 +00:00
Allow the X-Requested-With header in CORS on the OAuth endpoints
This commit is contained in:
1 file changed
+2
@@ -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)),
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user