diff --git a/src/main.ts b/src/main.ts index 2fd5bf0..5944903 100644 --- a/src/main.ts +++ b/src/main.ts @@ -5,6 +5,7 @@ import { AppModule } from './app.module' async function bootstrap() { const app = await NestFactory.create(AppModule) + app.enableCors() app.useGlobalPipes( new ValidationPipe({ whitelist: true, forbidNonWhitelisted: true }), )