diff --git a/crates/handlers/src/lib.rs b/crates/handlers/src/lib.rs index 5b8a5e48a..36028cb3e 100644 --- a/crates/handlers/src/lib.rs +++ b/crates/handlers/src/lib.rs @@ -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)), )