You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would usually get the remote IP from value of req.headers['x-forwarded-for'] when my code is running in FC custom runtime.
but when using the Nodejs runtime via the fc-http wrapper, this value is undefined.
it would be good if it can be consistent with the usage of other runtimes like FC custom (I can also get it when running in AWS lambda through the serverless-http wrapper).
if not, what is your advice on how to get it (preferably an official method that will be persistent in future implementations).
The text was updated successfully, but these errors were encountered:
did some dig around in the requestContext and found an IP in the requestContext but not sure if this is the official supported variable for Function compute handler.
I would usually get the remote IP from value of req.headers['x-forwarded-for'] when my code is running in FC custom runtime.
but when using the Nodejs runtime via the fc-http wrapper, this value is undefined.
it would be good if it can be consistent with the usage of other runtimes like FC custom (I can also get it when running in AWS lambda through the serverless-http wrapper).
if not, what is your advice on how to get it (preferably an official method that will be persistent in future implementations).
The text was updated successfully, but these errors were encountered: