From 3ba53903d9d525900ee2e6703a062146bf753b4b Mon Sep 17 00:00:00 2001 From: Dae Wook KIM <140354427+totobon6125@users.noreply.github.com> Date: Thu, 19 Oct 2023 17:38:23 +0900 Subject: [PATCH] Update main.ts --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 348714d..e560dad 100644 --- a/src/main.ts +++ b/src/main.ts @@ -27,7 +27,7 @@ async function bootstrap() { SwaggerModule.setup('api', app, document); //cors 정책 test2 app.enableCors({ - origin: ['http://localhost:5173'], + origin: ['http://localhost:5173','https://accounts.kakao.com'], methods: 'GET,HEAD,PUT,PATCH,POST,DELETE', credentials: true, // 쿠키를 사용하려면 true로 설정 exposedHeaders: ['accessToken', 'refreshToken'],