From c08fbbdab233a2cfae2c9556d9d8c6019dbb6e73 Mon Sep 17 00:00:00 2001 From: Daniel Hougaard Date: Mon, 13 Jan 2025 13:59:25 +0100 Subject: [PATCH] Update app.ts --- backend/src/server/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/server/app.ts b/backend/src/server/app.ts index fce744170..ce1be4a04 100644 --- a/backend/src/server/app.ts +++ b/backend/src/server/app.ts @@ -89,7 +89,7 @@ export const main = async ({ db, hsmModule, auditLogDb, smtp, logger, queue, key credentials: true, ...(appCfg.CORS_ALLOWED_ORIGINS?.length ? { - origin: appCfg.CORS_ALLOWED_ORIGINS + origin: [...appCfg.CORS_ALLOWED_ORIGINS, ...(appCfg.SITE_URL ? [appCfg.SITE_URL] : [])] } : { origin: appCfg.SITE_URL || true