diff --git a/src/main.ts b/src/main.ts index 0e0ee57..fdac75f 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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();