Skip to content

Commit 931f7c0

Browse files
committed
Allow OPTIONS requests through domain proxy
1 parent e2c489d commit 931f7c0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/node/routes/domainProxy.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ router.all(/.*/, async (req, res, next) => {
6969
return next()
7070
}
7171

72+
// OPTIONS requests should be allowed without credentials
73+
if (req.method === "OPTIONS") {
74+
return next()
75+
}
76+
7277
// Assume anything that explicitly accepts text/html is a user browsing a
7378
// page (as opposed to an xhr request). Don't use `req.accepts()` since
7479
// *every* request that I've seen (in Firefox and Chromium at least)

0 commit comments

Comments
 (0)