Skip to content

Commit

Permalink
feat(auth): add OPTIONS to the allowed headers
Browse files Browse the repository at this point in the history
  • Loading branch information
ygrishajev committed Jan 16, 2025
1 parent 1115a60 commit aefa7a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/api/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const appHono = new Hono();
appHono.use(
"/*",
cors({
allowHeaders: ["GET", "HEAD", "PUT", "POST", "DELETE", "PATCH", "OPTIONS"],
origin: env.CORS_WEBSITE_URLS?.split(",") || ["http://localhost:3000", "http://localhost:3001"],
credentials: true
})
Expand Down

0 comments on commit aefa7a9

Please sign in to comment.