diff --git a/src/main.ts b/src/main.ts index 0eb285c..ed14af0 100644 --- a/src/main.ts +++ b/src/main.ts @@ -10,6 +10,7 @@ async function bootstrap() { const configService = app.get(ConfigService); const isProduction = configService.get('app.nodeEnv') === 'production'; + app.set("trust proxy", 1); app.use(helmet()); app.setGlobalPrefix('api', { exclude: ['health', 'admin-api/(.*)', 'internal/(.*)'] });