Skip to content

Commit

Permalink
removing trust proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
TangoBeee committed Jan 22, 2024
1 parent bb54e81 commit 373763c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SwiftLinkAPI/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ app.use(cors());
app.use(express.json());

// Trust the hops in the X-Forwarded-For header
app.set("trust proxy", true);
// app.set("trust proxy", true);

// Using requestIp lib to get IP from behind the proxy
app.use(requestIp.mw())
Expand Down

0 comments on commit 373763c

Please sign in to comment.