From aefa7a9aaf776bc8cf6453d46eb1a42e15e3d00a Mon Sep 17 00:00:00 2001 From: Iaroslav Gryshaiev Date: Thu, 16 Jan 2025 14:50:24 +0100 Subject: [PATCH] feat(auth): add OPTIONS to the allowed headers --- apps/api/src/app.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/api/src/app.ts b/apps/api/src/app.ts index 38914442e..87106de39 100644 --- a/apps/api/src/app.ts +++ b/apps/api/src/app.ts @@ -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 })