From 48d66db30fbf94062fea126cafa2583f557431ee Mon Sep 17 00:00:00 2001 From: Chip Wasson Date: Mon, 4 Sep 2023 21:38:17 -0600 Subject: [PATCH] Add CORS --- src/main.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.ts b/src/main.ts index 13cad38..9e3915e 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({origin: "*"}); await app.listen(3000); } bootstrap();