From dd89419f782225abc1e8f9812d4dc38ce614834d Mon Sep 17 00:00:00 2001 From: totobon Date: Tue, 24 Oct 2023 19:42:28 +0900 Subject: [PATCH] =?UTF-8?q?cors=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 89605b9..3de17fe 100644 --- a/src/main.ts +++ b/src/main.ts @@ -27,7 +27,7 @@ async function bootstrap() { SwaggerModule.setup('api', app, document); //cors 정책 app.enableCors({ - origin: ['http://localhost:5173'], + origin: ['http://localhost:5173','https://d2r603zvpf912o.cloudfront.net/'], methods: 'GET,HEAD,PUT,PATCH,POST,DELETE', credentials: true, // 쿠키를 사용하려면 true로 설정 exposedHeaders: ['accessToken', 'refreshToken'],