diff --git a/server/src/index.ts b/server/src/index.ts index edf6038..2162d0d 100644 --- a/server/src/index.ts +++ b/server/src/index.ts @@ -13,11 +13,8 @@ app.use(express.json()); app.use(express.static(path.join(__dirname, 'public'))) app.use( cors({ - origin: (origin, callback) => { - if([process.env.FRONTEND_URL1,process.env.FRONTEND_URL2].includes(origin || '')){ - callback(null, origin); - } - } + origin: process.env.FRONTEND_URL, + credentials: true, }) ); app.use(express.static("build"));