diff --git a/server/src/config/createExpressApp.ts b/server/src/config/createExpressApp.ts index b1c5b065..24bb407d 100644 --- a/server/src/config/createExpressApp.ts +++ b/server/src/config/createExpressApp.ts @@ -40,8 +40,8 @@ const createExpressApp = (sessionStore: MongoStore): express.Express => { // app.use(cors({ credentials: true, origin: FRONTEND_URL })); app.use( cors({ - origin: '*', - credentials: false, + origin: [FRONTEND_URL, 'http://localhost:3000'], + credentials: true, }), ); // Gives express the ability to parse client cookies and add them to req.cookies