Having a weird situation:
- Setup a subdomain “data ot example ot come” (CNAME pointing to some other domain - doesn’t matter i guess)
- Created a worker which returns some json data
- Created a route for the subdomain (“data ot example ot come / *”) and the worker mentioned above.
- Tested the worker using the WebUI, and Browser. It works, I can see the JSON output. Tried curl -v as well, everything works.
Created another subdomain “consumer dot example ot come” (CNAME pointing to some other domain)
Created a worker, which consumes the data ot example ot come URL to fetch the JSON Data
let data_response = await fetch(new Request("data ot example ot come"))
Worker works fine using the Web UI (Web based editor). Local “dev” server also works fine. no issue.
Obviously created a route “consumer ot example ot come /*” and assigned the worker.
But when I open the “consumer” in my browser (or curl, wget, etc.), the worker gets executed, but when the code tries to access the “data ot example ot come” it completely bypasses the worker on "data ot example ot come " and directly fetches the page (from the CNAME domain), even after 24 hours the same result.
Am I missing something?
P.S.: Please ignore the odd domain names, I had to change all the links, as a new member, I can only post 2 links!!! Seriously!!!