From 19366c725e4efbcfb02cce6f6370d1551889a517 Mon Sep 17 00:00:00 2001 From: builtbysuraj Date: Sat, 2 Mar 2024 17:02:34 +0530 Subject: [PATCH] chore: Add frontend url to cors origin --- server/src/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/app.ts b/server/src/app.ts index ef17c8a..ce6fc3f 100644 --- a/server/src/app.ts +++ b/server/src/app.ts @@ -7,7 +7,7 @@ const app = express() app.use( cors({ - origin: [ENV.CLIENT_URL], + origin: [ENV.CLIENT_URL, 'http://localhost:5173', 'http://localhost:3000'], credentials: true, }) )