diff --git a/src/main.ts b/src/main.ts index 08e4014..b619853 100644 --- a/src/main.ts +++ b/src/main.ts @@ -10,6 +10,7 @@ async function bootstrap() { app.useGlobalFilters(new AllExceptionFilter(httpAdapter)); app.setGlobalPrefix('api'); app.useGlobalPipes(new ValidationPipe()); + app.enableCors(); const options = new DocumentBuilder() .setTitle('Udemy course API endpoints')