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 a69fd36 commit 8ac21cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/api/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const appHono = new Hono();
appHono.use(
"/*",
cors({
allowHeaders: ["GET", "HEAD", "PUT", "POST", "DELETE", "PATCH", "OPTIONS"],
allowMethods: ["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 8ac21cc

Please sign in to comment.