From 5e5a61fa2cda7baf87f9f1f3d81414980492b554 Mon Sep 17 00:00:00 2001 From: ramp07413 Date: Mon, 21 Jul 2025 15:41:45 +0530 Subject: [PATCH] Update app.js --- app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index e631d68..2f7aa94 100644 --- a/app.js +++ b/app.js @@ -27,7 +27,7 @@ app.use((err, req, res, next) => { }); app.use(cors({ - origin : [process.env.FRONTEND_URL], + origin : *, methods : ["GET", "POST", "PUT", "DELETE"], credentials : true, })) @@ -54,4 +54,4 @@ app.use('/api/v1/user', userRouter) removeUnverifiedAccount() connectDB() app.use(errorMiddleware) -module.exports = app; \ No newline at end of file +module.exports = app;