Skip to content

Commit

Permalink
Update main.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
totobon6125 authored Oct 19, 2023
1 parent b756627 commit 3ba5390
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down

0 comments on commit 3ba5390

Please sign in to comment.