Skip to content

Commit

Permalink
[Change] #123, to see real user ip instead of localhost proxy (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
Type-Style authored Sep 2, 2024
1 parent 042c743 commit 5854f6f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ app.use((req, res, next) => { // limit body for specific http methods
next();
});

app.set('trust proxy',true);

// routes
app.get(['/', '/login'], (req, res) => {
Expand Down

0 comments on commit 5854f6f

Please sign in to comment.