From 11695cec7cd054f845171606c6d6bb2021b3c52e Mon Sep 17 00:00:00 2001 From: Matthieu Date: Thu, 18 Sep 2025 08:17:08 +0200 Subject: [PATCH] fix: trust proxy for session cookies --- src/main.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.ts b/src/main.ts index 7522826..ab911d3 100644 --- a/src/main.ts +++ b/src/main.ts @@ -6,6 +6,8 @@ import { AppModule } from './app.module'; async function bootstrap() { const app = await NestFactory.create(AppModule); + app.set('trust proxy', 1); + app.use( session({ secret: process.env.SESSION_SECRET || 'change-me',