Skip to content

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

feat(infisical-pg): fixed audit log to estimate doc count and resolve cors issue

Akhil Mohan53f16f01b8ac
diff --git a/backend-pg/src/server/app.ts b/backend-pg/src/server/app.ts
index b0a232ee01..c8eb0d28ff 100644
--- a/backend-pg/src/server/app.ts
+++ b/backend-pg/src/server/app.ts
@@ -52,7 +52,7 @@ export const main = async ({ db, smtp, logger, queue }: TMain) => {
await server.register<FastifyCorsOptions>(cors, {
credentials: true,
- origin: appCfg.SITE_URL
+ origin: appCfg.SITE_URL || true
});
// pull ip based on various proxy headers
await server.register(fastifyIp);