Skip to content

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

set ignoreTrailingSlash to true in fastify

Maidul Islam65d30384145c
diff --git a/backend-pg/src/server/app.ts b/backend-pg/src/server/app.ts
index 3269e29c26..ac316c7bc6 100644
--- a/backend-pg/src/server/app.ts
+++ b/backend-pg/src/server/app.ts
@@ -34,7 +34,8 @@ export const main = async ({ db, smtp, logger, queue }: TMain) => {
const appCfg = getConfig();
const server = fasitfy({
logger,
- trustProxy: true
+ trustProxy: true,
+ ignoreTrailingSlash: true,
}).withTypeProvider<ZodTypeProvider>();
server.setValidatorCompiler(validatorCompiler);