From 5bf2215e3b774e6a381ebda66160437541a91fd3 Mon Sep 17 00:00:00 2001 From: Coalery Date: Sun, 17 Nov 2024 17:25:57 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20Access-Control-Allow-Credentials=20?= =?UTF-8?q?=EC=9D=91=EB=8B=B5=20=ED=97=A4=EB=8D=94=EC=97=90=20true=20?= =?UTF-8?q?=ED=8F=AC=ED=95=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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);