From 164ea68497afbc4bb04acbe56ce48e6975455bb4 Mon Sep 17 00:00:00 2001 From: dbruidb <162143047+dbruidb@users.noreply.github.com> Date: Tue, 12 Mar 2024 21:39:21 -0500 Subject: [PATCH] Update main.ts --- src/main.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 8e78a74e6..d588075a2 100644 --- a/src/main.ts +++ b/src/main.ts @@ -4,7 +4,8 @@ import { ConfigService } from '@nestjs/config'; import { SERVER_PORT } from './config/constants'; async function bootstrap() { -const app = await NestFactory.create(AppModule, { cors: true }); +const app = await NestFactory.create(AppModule); + app.enableCors() const configService = app.get(ConfigService); const port = configService.get(SERVER_PORT); await app.listen(port);