Closed storm1ng closed 4 years ago
This will add support for req.hostname specified in the expressjs documentation: http://expressjs.com/en/5x/api.html#req.hostname
req.hostname
Note: I didn't implement the X-Forwarded-Host check since we would need to evaluate the trust proxy option: http://expressjs.com/en/5x/api.html#app.set
trust proxy
Hi @mjenny, thank you for the PR.
This will add support for
req.hostname
specified in the expressjs documentation: http://expressjs.com/en/5x/api.html#req.hostnameNote: I didn't implement the X-Forwarded-Host check since we would need to evaluate the
trust proxy
option: http://expressjs.com/en/5x/api.html#app.set