Skip to content

Commit

Permalink
removed trust proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
Amruth-Vamshi authored Mar 13, 2024
1 parent c599f8d commit 67c9e41
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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*/) ?? '*',
Expand Down

0 comments on commit 67c9e41

Please sign in to comment.