Web with worker routing issue

More of a question on if its possible. I have a website (HTML) listed below that the Script section I want to do a fetch a worker that calls Neon Database (\functions\queryneon.js or even in \functions\api\queryneon.js) when i do a fetch request it returns the root html not the worker function results. (As seen in attached image. Page :toffwebcf.pages.dev Account ID: 5278ccba91db0703bae918390a60be28 For testing I built another Worker separate from the Website at toffdb.lordiconx.workers.dev and the code works there but i cant do a fetch from the main website to this worker or i get CORS issue. I have tried other redirection for toffwebcf.pages.dev/db to route to toffdb.lordiconx.workers.dev same issue with CORS. Any help appreciated, Thanks
No description
1 Reply
LordIcon
LordIconOP2w ago
Well I got it working...

Did you find this page helpful?