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