From ac4572ee2ae117b8ed5029ba32d0e552df13d91d Mon Sep 17 00:00:00 2001 From: totobon Date: Tue, 24 Oct 2023 21:02:10 +0900 Subject: [PATCH] =?UTF-8?q?cors=20=EB=B3=80=EA=B2=BD?= 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 47f0298..edfbb0d 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','https://d2r603zvpf912o.cloudfront.net/','https://totobon.store'], + origin: ['http://localhost:5173','https://d2r603zvpf912o.cloudfront.net','https://totobon.store'], methods: 'GET,HEAD,PUT,PATCH,POST,DELETE', credentials: true, // 쿠키를 사용하려면 true로 설정 exposedHeaders: ['accessToken', 'refreshToken'],