Skip to content

Commit

Permalink
FIx: Remove enable cors
Browse files Browse the repository at this point in the history
  • Loading branch information
Ho-s committed Jun 29, 2024
1 parent b831636 commit b9f63a1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ async function bootstrap() {
const port = configService.get('PORT');
await app.listen(port);

app.enableCors({
origin:
configService.get('NOE_ENV') === NODE_ENVIRONMENT['production']
? 'https://korrk.kr'
: 'http://localhost:3000',
credentials: true,
});
// app.enableCors({
// origin:
// configService.get('NOE_ENV') === NODE_ENVIRONMENT['production']
// ? 'https://korrk.kr'
// : 'http://localhost:3000',
// credentials: true,
// });
app.use(cookieParser());

console.log(`Application is running: http://localhost:${port}/api-docs`);
Expand Down

0 comments on commit b9f63a1

Please sign in to comment.