Skip to content

Commit

Permalink
Merge pull request #124 from modern-agile-team/feature/auth
Browse files Browse the repository at this point in the history
Test(NicoDora/auth) : cookie 설정
  • Loading branch information
NicoDora authored Nov 14, 2023
2 parents d44a042 + 73dcdd9 commit 886d33f
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 @@ -11,7 +11,7 @@ async function bootstrap() {
app.useGlobalPipes(new ValidationPipe());
// app.useGlobalFilters(new HttpExceptionFilter());
app.enableCors({
origin: '*', // 허용할 도메인
origin: 'http://localhost:3000', // 허용되는 Origin URL
methods: 'GET ,HEAD, PUT, PATCH, POST, DELETE',
credentials: true, // 이 옵션을 true로 설정하여 쿠키 전송을 허용
});
Expand Down

0 comments on commit 886d33f

Please sign in to comment.