Skip to content

Commit 0ad0021

Browse files
committed
added trust proxy
1 parent c0937c0 commit 0ad0021

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)