Cloudflare DevelopersCD
Cloudflare Developers2y ago
5 replies
Ricky U

I added a Response Headed with the ip.src.city, but i cant read it on the client side javacript?

I belive headers are not readable in JS in the browser unless another request is made right? But I can read document.cookie, so how can i set a dynamic cookie with the ip.src.region?
set-cookie but what is the expression in the transform ? country=ip.src.region does not work.

I am using Cloudflare pages and transforms.
Was this page helpful?