How can I determine the IP address of a given request from within a controller? For example (in express):
app.post(\'/get/ip/address\', function (req, res) {
I'm using express behind nginx and
req.headers.origin
did the trick for me