Skip to content

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

Revert "temp disable cors"

Maidul Islamaaef339e2197
diff --git a/backend/src/server/app.ts b/backend/src/server/app.ts
index 946f87f369..863162c2b7 100644
--- a/backend/src/server/app.ts
+++ b/backend/src/server/app.ts
@@ -58,7 +58,7 @@ export const main = async ({ db, smtp, logger, queue, keyStore }: TMain) => {
await server.register<FastifyCorsOptions>(cors, {
credentials: true,
- origin: false
+ origin: appCfg.SITE_URL || true
});
// pull ip based on various proxy headers
await server.register(fastifyIp);