mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-03 19:26:07 +00:00
Update app.ts
This commit is contained in:
@@ -89,7 +89,7 @@ export const main = async ({ db, hsmModule, auditLogDb, smtp, logger, queue, key
|
|||||||
credentials: true,
|
credentials: true,
|
||||||
...(appCfg.CORS_ALLOWED_ORIGINS?.length
|
...(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
|
origin: appCfg.SITE_URL || true
|
||||||
|
|||||||
Reference in New Issue
Block a user