I’m trying to read the host header from a worker and use it to get contents from a cloud storage provider, but it only runs if I request the domain the worker is on directly.
It doesn’t run requesting page.myexternaldomain.com. It this because of how it they work with routing zones?
If so, is there a way to run a worker by pointing an external domain to it? A proxy server in front of the worker could work, but that kills the idea of responding from the edge.
Sorry I messed up removing links since I had 2 link limited. page is a record of myexternaldomain, and myworkerdomain is Cloudflare domain running a worker.
So that page record is part of that external domain? That would not work, as you’d resolve the host to Cloudflare’s network, however Cloudflare does not know that external domain and will reject that request.
In that case you wouldnt need a CNAME but a proper HTTP redirect to your Cloudflare domain.