diff --git a/server/src/server.ts b/server/src/server.ts index 20ef14e7..8c28c2d2 100644 --- a/server/src/server.ts +++ b/server/src/server.ts @@ -95,6 +95,7 @@ app.use((req, res, next) => { res.header('Access-Control-Allow-Origin', process.env.PUBLIC_URL || 'http://localhost:5173'); res.header('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE,OPTIONS'); res.header('Access-Control-Allow-Headers', 'Content-Type, Authorization'); + res.header('Access-Control-Allow-Credentials', 'true'); if (req.method === 'OPTIONS') { return res.sendStatus(200); }