Skip to content

Commit

Permalink
Trust Proxy IP
Browse files Browse the repository at this point in the history
  • Loading branch information
singhalkarun authored Jan 18, 2024
1 parent 15ad91b commit 0ce5fa0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 0ce5fa0

Please sign in to comment.