From ab7abab686ad302ffe84336db19d17c16248860b Mon Sep 17 00:00:00 2001 From: Humenius Date: Tue, 2 Jun 2020 10:04:29 +0200 Subject: [PATCH] Set CORS to be enabled explicitly in backend --- backend/src/main.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/main.ts b/backend/src/main.ts index 13cad38..da5451c 100644 --- a/backend/src/main.ts +++ b/backend/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();