I don't get the CF header that displays the original users region

I read around in some community posts here that CF will attach a header for the original requests region. I tried hosting a simple SPA on Cloudflare pages and the request region is not found in any of the headers.

There isn’t a default header which has a region. There’s CF-IPCountry which is the country detected from the IP address.

You could use Transform Rules with a dynamic request header. This would allow you to get more info like city or continent. See the possible values here: Fields reference · Cloudflare Ruleset Engine docs

2 Likes