Workers on Custom Domains
Hello all, looking for clarification on the Workers on Custom Domains scenario documented in the second paragraph of https://developers.cloudflare.com/workers/platform/triggers/custom-domains/#fetch. From the phrasing, I'm taking it to mean that a subrequest fetch to https://api.example.com from worker A hosted on app.example.com (set up as a Cloudflare Custom domain) to worker B hosted on api.example.com (also set up as a Cloudflare Custom domain) should work. Is this correct?
From my tests, a fetch from worker A to api.example.com returns an HTTP 522 code. Other possibly pertinent details:
- I have other services running on example.com as well as it's other subdomains, all fronted by Cloudflare DNS.
- Parent domain name itself was purchased elsewhere but its DNS is hosted on Cloudflare.
Custom Domains · Cloudflare Workers docs
Custom Domains allow you to connect your Worker to a hostname, without having to make changes to your DNS settings or perform any certificate …
0 Replies