diff --git a/server/src/main.ts b/server/src/main.ts index acabe9f..fc82f61 100644 --- a/server/src/main.ts +++ b/server/src/main.ts @@ -4,7 +4,7 @@ import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger' import { ClassSerializerInterceptor, ValidationPipe } from '@nestjs/common' async function bootstrap() { - const app = await NestFactory.create(AppModule) + const app = await NestFactory.create(AppModule, { cors: true }) app.useGlobalPipes(new ValidationPipe({ transform: true })) app.useGlobalInterceptors(new ClassSerializerInterceptor(app.get(Reflector)))