Skip to content

Commit

Permalink
fix/#39/cors 설정 수정 및 pull develop
Browse files Browse the repository at this point in the history
  • Loading branch information
gwgw123 committed Dec 24, 2024
1 parent f75ddbe commit 056a875
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ async function bootstrap() {
app.enableCors({
origin: ['.localhost:3000', 'https://cokoedu.com'],
credentials: true,
methods: 'GET,HEAD,OPTIONS,POST,PUT',
allowedHeaders:
'Origin, X-Requested-With, Content-Type, Accept, Authorization',
});

app.use(cookieParser());
Expand Down

0 comments on commit 056a875

Please sign in to comment.