Skip to content

Commit

Permalink
Trust 2 hops proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
soruly committed Oct 17, 2024
1 parent ce6a9a9 commit 9858ee7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const app = express();

app.disable("x-powered-by");

app.set("trust proxy", 1);
app.set("trust proxy", 2);

app.use((req, res, next) => {
res.set("Access-Control-Allow-Origin", "*");
Expand Down

0 comments on commit 9858ee7

Please sign in to comment.