I have an Azure function written on node.js. How could I retrieved an IP address of a client that called the function?
What I've found so far:
- An answer to the same question, but using C#.
It is possible to read it from headers:
module.exports = function (context, req) { var ip = req.headers['x-forwarded-for'] }
Is it reliable to get the ip this way, since it can be easily changed on the way to the function?