Using fetch from inside worker results in 404 or 405 errors
I'm using fetch from inside a worker to call an external API (which has CF in front of the origin) and I get a 404 for a GET request and 405 for a POST. Both these requests work fine using fetch from my worker when testing locally or in the browser.
What might be causing these issues when inside a worker?
2 Replies
CF Worker Logs:
FetchError: [GET] "https://dev.sellmylivestock.com/api/app.get?HID=sellmylivestock": 404 Not Found
No sure if this helps but have you tried enabling the
global_fetch_strictly_public compatibility flag?