Skip to content

Commit

Permalink
improvement(cors): add x-vercel headers to allow-list
Browse files Browse the repository at this point in the history
  • Loading branch information
use-tusk[bot] authored Oct 10, 2024
1 parent 6494f39 commit 24c9ae9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions valhalla/jawn/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ app.options("*", (req, res) => {
res.setHeader("Access-Control-Allow-Methods", "*");
res.setHeader(
"Access-Control-Allow-Headers",
"Content-Type, Authorization, Helicone-Authorization"
"Content-Type, Authorization, Helicone-Authorization, x-vercel-set-bypass-cookie, x-vercel-protection-bypass"
);
res.setHeader("Access-Control-Allow-Credentials", "true");
res.status(200).send();
Expand Down Expand Up @@ -176,7 +176,7 @@ app.use((req, res, next) => {
);
res.setHeader(
"Access-Control-Allow-Headers",
"Content-Type, Authorization, Helicone-Authorization"
"Content-Type, Authorization, Helicone-Authorization, x-vercel-set-bypass-cookie, x-vercel-protection-bypass"
);
res.setHeader("Access-Control-Allow-Credentials", "true");
next();
Expand Down

0 comments on commit 24c9ae9

Please sign in to comment.