From 49d9a49cc16525c3d2fc04408cec2df0defd51ac Mon Sep 17 00:00:00 2001 From: Leonardo Bishop Date: Sat, 16 Mar 2024 00:22:44 +0000 Subject: Add dockerfile --- src/main.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main.ts') diff --git a/src/main.ts b/src/main.ts index a01b32f..fb1b1bd 100644 --- a/src/main.ts +++ b/src/main.ts @@ -5,6 +5,7 @@ import { ValidationPipe } from '@nestjs/common'; async function bootstrap() { const app = await NestFactory.create(AppModule); app.useGlobalPipes(new ValidationPipe()); + app.enableCors(); await app.listen(3000); } bootstrap(); -- cgit v1.2.3-70-g09d2