Hello, I have a question about the geo object while using a reverse proxy. Currently, it’s pulling the geo data based on the nginx server IP that is proxying to Netlify. (I know this isn’t ideal, but we are stuck with the current setup for multiple reasons)
example of the edge function: countrytoggle.js · GitHub
I have the real client IP coming in from the “X-Forwarded-For” header. Is there a way to intercept the request, and set the IP to that so the geo object is based on the real client IP? Or will I have to use a third party api to retrieve geo data based on that?
Thank you!