From 0ce5fa0cc6e1e7bf9c767877e4832d4470abbb6e Mon Sep 17 00:00:00 2001 From: Karun Agarwal <113603846+singhalkarun@users.noreply.github.com> Date: Thu, 18 Jan 2024 14:07:21 +0530 Subject: [PATCH] Trust Proxy IP --- src/main.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.ts b/src/main.ts index 1701912..2d2fc01 100644 --- a/src/main.ts +++ b/src/main.ts @@ -19,6 +19,7 @@ async function bootstrap() { SwaggerModule.setup('swagger', app, document); // add security headers app.use(helmet()); + app.set('trust proxy', 1); // enable cors app.enableCors({