Skip to content

Commit f4b01af

Browse files
committed
added trust proxy in api gateway app.ts
1 parent 655b8cf commit f4b01af

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

api-gateway/src/app.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import { routes } from "./routes";
77

88
const app:Application = express();
99

10+
app.set('trust proxy', true);
11+
1012
app.use(morgan("dev"))
1113
app.use(express.json())
1214
app.use(express.urlencoded({extended:true}));

0 commit comments

Comments
 (0)