diff --git a/server/src/index.ts b/server/src/index.ts index 7e08548..bab3501 100644 --- a/server/src/index.ts +++ b/server/src/index.ts @@ -18,7 +18,11 @@ app.use(helmet({ contentSecurityPolicy: false, // Disable CSP for development })); app.use(cors({ - origin: process.env.CORS_ORIGIN || 'http://localhost:5173', + origin: [ + 'http://localhost:5173', + 'http://localhost:5174', + process.env.CORS_ORIGIN || '' + ].filter(Boolean), credentials: true, })); app.use(express.json());