We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ce5fa0 commit f8381bcCopy full SHA for f8381bc
src/main.ts
@@ -8,6 +8,7 @@ import helmet from 'helmet';
8
async function bootstrap() {
9
const app = await NestFactory.create(AppModule);
10
app.getHttpAdapter().getInstance().set('etag', false);
11
+ app.getHttpAdapter().getInstance().set('trust proxy', 1);
12
13
const config = new DocumentBuilder()
14
.setTitle('e-Samwad User Service')
@@ -19,7 +20,6 @@ async function bootstrap() {
19
20
SwaggerModule.setup('swagger', app, document);
21
// add security headers
22
app.use(helmet());
- app.set('trust proxy', 1);
23
24
// enable cors
25
app.enableCors({
0 commit comments