Using a Worker as GEO IP API for Server-Side HTTP Requests
I have a worker configured to return the geoip data (City/State/metroCode) from the
request
headers. This works fine if the request is initiated from a browser either directly or via XHR/Fetch, but I need a way to hit this worker API with a backend HTTP request and "inform" Cloudflare of what IP address should be used to determine the values for the geo-headers.
I am thinking this may not be possible, but I did try using X-Forwarded-For
and CF-Connecting-IP
headers in my request. The former doesn't do anything, and the latter throws a 403 Forbidden
status.
Testing using Postman. Any help/direction would be greatly appreciated. Thanks.1 Reply
Thanks for the reply - unfortunate but I can understand why.