From 67c9e412e14fb648b4acd458c214e6b577176111 Mon Sep 17 00:00:00 2001 From: Amruth-Vamshi <130033232+Amruth-Vamshi@users.noreply.github.com> Date: Wed, 13 Mar 2024 16:59:31 +0530 Subject: [PATCH] removed trust proxy --- src/main.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 2e4da4a..c640955 100644 --- a/src/main.ts +++ b/src/main.ts @@ -19,7 +19,6 @@ async function bootstrap() { SwaggerModule.setup('swagger', app, document); // add security headers app.use(helmet()); - app.set('trust proxy', 1); // enable cors app.enableCors({ origin: process.env.CORS_ALLOWED_ORIGINS?.split(/\s*,\s*/) ?? '*',