Skip to content

Commit

Permalink
fix: 일단 급한대로 모든 host 에 대해 cors 오픈
Browse files Browse the repository at this point in the history
  • Loading branch information
ndaemy committed Sep 11, 2023
1 parent 8e27cd6 commit 20cf48c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ async function bootstrap() {
exclude: ['health-check'],
});
app.useGlobalPipes(new ValidationPipe());
app.enableCors({
origin: RegExp(process.env.CORS_ORIGIN),
});
app.enableCors();
await app.listen(process.env.PORT || 3000);
}
bootstrap();

0 comments on commit 20cf48c

Please sign in to comment.