From 741ad03928ca22efe764c4bb9b8c7a1723d214fd Mon Sep 17 00:00:00 2001 From: Greg Akins Date: Thu, 11 Apr 2024 08:31:56 -0400 Subject: [PATCH] MAT-6729: Adding Cors attribute to allow the service to be called from our front end --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index a0399f6..43f0d0f 100644 --- a/src/main.ts +++ b/src/main.ts @@ -2,7 +2,7 @@ import { NestFactory } from '@nestjs/core'; import { ExportModule } from './export.module'; export async function bootstrap() { - const app = await NestFactory.create(ExportModule); + const app = await NestFactory.create(ExportModule, { cors: true }); await app.listen(3000); } bootstrap();