Skip to content

Commit

Permalink
set trust proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
Amruth-Vamshi committed Jan 18, 2024
1 parent 66f4127 commit 95f8739
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger';

import { AppModule } from './app.module';
import { NestFactory } from '@nestjs/core';
import * as Sentry from '@sentry/node';
Expand All @@ -19,6 +18,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 95f8739

Please sign in to comment.