diff --git a/src/main.ts b/src/main.ts index 385f2dd..c8f1649 100644 --- a/src/main.ts +++ b/src/main.ts @@ -13,7 +13,10 @@ async function bootstrap() { const appConfig = app.get(ConfigService).getOrThrow('app'); const corsOptions: CorsOptions | undefined = appConfig.env === 'production' - ? { origin: ['https://khlug.org', 'https://app.khlug.org'] } + ? { + origin: ['https://khlug.org', 'https://app.khlug.org'], + credentials: true, + } : undefined; app.enableCors(corsOptions);