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',