diff --git a/src/main.ts b/src/main.ts index be503b5..2a0e1b6 100644 --- a/src/main.ts +++ b/src/main.ts @@ -4,7 +4,7 @@ import { NestFastifyApplication, } from '@nestjs/platform-fastify'; import { AppModule } from './app.module'; -import { ConsoleLogger, LoggerService, ValidationPipe } from '@nestjs/common'; +import { ValidationPipe } from '@nestjs/common'; import { ConfigService } from '@nestjs/config'; import { Logger } from 'nestjs-pino'; @@ -16,8 +16,9 @@ async function bootstrap() { ); const logger = app.get(Logger); - app.useLogger(logger); + app.useLogger(logger); + app.enableCors(); app.useGlobalPipes( new ValidationPipe({ whitelist: true,