Skip to content

Commit 40971a8

Browse files
authored
Fix CORS preflight for Xbox token header
Fix CORS preflight for Xbox token header
2 parents ee67c55 + d0f8fbd commit 40971a8

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/app.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,15 @@ const corsOptions = {
109109
},
110110
credentials: true,
111111
methods: ["GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"],
112-
allowedHeaders: ["Content-Type", "Authorization", "X-Requested-With", "x-xbl-token", "x-request-id", "x-correlation-id"],
112+
allowedHeaders: [
113+
"Content-Type",
114+
"Authorization",
115+
"X-Requested-With",
116+
"x-xbl-token",
117+
"xbl-token",
118+
"x-request-id",
119+
"x-correlation-id"
120+
],
113121
exposedHeaders: ["X-Request-Id"]
114122
};
115123

0 commit comments

Comments
 (0)