Hello Alex, Proxies will usually use the X-Forwarded-For header to denote which IP the request originated from. You may do your own geolocation based on that value.
As for getting X-AppEngine-Country to use the value of X-Forwarded-For, there is an open request <https://issuetracker.google.com/35892919> for that feature on the Issue Tracker. On Thursday, September 28, 2017 at 10:10:32 AM UTC-4, Alex G wrote: > > I'm using Varnish (Fastly) between the user and App Engine (flexible). > When I read the X-AppEngine-Country header it seems it is getting the IP > from the proxy. > This happens even when I set app.enable('trust proxy') > <https://expressjs.com/en/guide/behind-proxies.html> in Express. > > Is there a way to overcome this? > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/8af4ff64-9112-4405-bf70-72419a058c43%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
