Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Update app.ts

Daniel Hougaardc08fbbdab233
diff --git a/backend/src/server/app.ts b/backend/src/server/app.ts
index fce7441701..ce1be4a04e 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