From e45565d45e424c7b71b6856efbdafc077f2e11ba Mon Sep 17 00:00:00 2001 From: Konstantinos Kamaropoulos Date: Thu, 27 Feb 2020 03:11:00 +0200 Subject: [PATCH] feat: Enable CORS --- src/main.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.ts b/src/main.ts index 13cad38..da5451c 100644 --- a/src/main.ts +++ b/src/main.ts @@ -3,6 +3,7 @@ import { AppModule } from './app.module'; async function bootstrap() { const app = await NestFactory.create(AppModule); + app.enableCors(); await app.listen(3000); } bootstrap();