From e389517710c9afa25bae51b71f4c2b929291ad2b Mon Sep 17 00:00:00 2001 From: lukejianu <71729102+lukejianu@users.noreply.github.com> Date: Fri, 17 Nov 2023 20:06:40 -0500 Subject: [PATCH] feat: allow temp vercel URL as origin (CORS) --- packages/api-v2/src/main.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/api-v2/src/main.ts b/packages/api-v2/src/main.ts index 86120b93f..a5f64f2a9 100644 --- a/packages/api-v2/src/main.ts +++ b/packages/api-v2/src/main.ts @@ -19,6 +19,10 @@ async function bootstrap() { const app = await NestFactory.create(AppModule, { logger: graduateLogger, + cors: { + origin: + "https://graduatenu-frontend-v2-git-christina-move-fro-b625a5-sandboxneu.vercel.app", + }, }); /**