diff --git a/server/apps/api/src/main.ts b/server/apps/api/src/main.ts index 22661db8..8e5e4cdb 100644 --- a/server/apps/api/src/main.ts +++ b/server/apps/api/src/main.ts @@ -8,7 +8,11 @@ import * as cookieParser from 'cookie-parser'; async function bootstrap() { const app = await NestFactory.create(ApiModule); - app.enableCors(); + app.enableCors({ + origin: true, + methods: 'GET,HEAD,PUT,PATCH,POST,DELETE,OPTIONS', + credentials: true, + }); if (process.env.NODE_ENV == 'prod') { Sentry.init({ dsn: process.env.SENTRY_DSN,