From 110228bf668f733ffaf1b7132256483a23e6e8e0 Mon Sep 17 00:00:00 2001 From: Subramani E Date: Tue, 14 Jan 2025 23:32:54 +0530 Subject: [PATCH] trying to solve cors error 4 --- apps/core-admin/src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/core-admin/src/index.ts b/apps/core-admin/src/index.ts index 19f047a7..598d3089 100644 --- a/apps/core-admin/src/index.ts +++ b/apps/core-admin/src/index.ts @@ -24,6 +24,7 @@ app.use( origin: allowedOrigins, methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'], credentials: true, // Allow cookies or authorization headers + allowedHeaders: ['Content-Type', 'Authorization'], }), );