Need help enabling cf-timezone for Cloudflare Workers and a custom domain

For Workers & Pages, what is the name of the domain?

poem.town

What is the issue or error you’re encountering

I’m trying to make use of the geolocation header cf-timezone. It isn’t present and I can’t figure out how to activate it for my custom domain

What steps have you taken to resolve the issue?

The custom domain poem.town uses Cloudflare for DNS. I have looked through the Rules section, and I understand there might be something to enable in a section called “Managed Rules”… but this isn’t available for me, just “Page Rules.” I can’t see any settings under Cloudflare Workers to enable cf-timezone.

What are the steps to reproduce the issue?

In the fetch, log the header: request.headers.get("cf-timezone"). It isn’t filled out

I have also tried the request.cf object, which is empty. I am on the free plan – is this why?

See here to enable the “Add visitor location headers Managed Transform” under Transform Rules (click “Overview” under Rules as the Rules menu has changed)…

1 Like