Skip to content

Commit 0ce5fa0

Browse files
authored
Trust Proxy IP
1 parent 15ad91b commit 0ce5fa0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ async function bootstrap() {
1919
SwaggerModule.setup('swagger', app, document);
2020
// add security headers
2121
app.use(helmet());
22+
app.set('trust proxy', 1);
2223

2324
// enable cors
2425
app.enableCors({

0 commit comments

Comments
 (0)