From 668aa152bfeeac5a78469aa6d57ef48b214995a5 Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Thu, 4 Jun 2026 08:46:18 -0500 Subject: [PATCH] fix: add admin.prosapp.co to CORS allowed origins --- backend/src/main.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/backend/src/main.ts b/backend/src/main.ts index 5de0700..e82f19c 100644 --- a/backend/src/main.ts +++ b/backend/src/main.ts @@ -10,7 +10,12 @@ async function bootstrap() { const logger = new Logger('Bootstrap'); app.enableCors({ - origin: ['http://localhost:3000', 'http://localhost:5173', 'https://app.prosapp.co'], + origin: [ + 'http://localhost:3000', + 'http://localhost:5173', + 'https://app.prosapp.co', + 'https://admin.prosapp.co', + ], methods: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE'], credentials: true, });