Created
June 11, 2018 04:54
-
-
Save miguelmota/1f56c6e36f5c93b4d9a753ef347c47ea to your computer and use it in GitHub Desktop.
Node.js Express.js forward real IP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// trust proxy, otherwise req.ip will be local ip | |
app.enable('trust proxy') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment