From 03c29662195b0bc28d012a83f4b91bc6240421c5 Mon Sep 17 00:00:00 2001 From: Amit Amrutiya Date: Sat, 8 Jun 2024 16:38:01 +0530 Subject: [PATCH] add diff cors url as well Signed-off-by: Amit Amrutiya --- backend/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/index.js b/backend/index.js index d1fa475..c12847d 100644 --- a/backend/index.js +++ b/backend/index.js @@ -36,7 +36,7 @@ app.use(express.json()) app.use(cookieParser()) app.use( cors({ - origin: process.env.REACT_FRONTED_URL, + origin: [process.env.REACT_FRONTED_URL, process.env.VERCEL_FRONTED_URL], credentials: true, }), )