For Workers & Pages, what is the name of the domain?
What is the issue or error you’re encountering
In a worker if I use fetch to get a page from azurewebsites I get a 502 Bad gateway, if I browse the same URL from my browser I get http 200
In a worker if I use fetch to get a page from azurewebsites I get a 502 Bad gateway, if I browse the same URL from my browser I get http 200
Hi there,
Please check this documentation to confirm your are using Fetch correctly:
Thank you.
Yes I think I use fetch correctly because if I only change the URL to “www.example.com” I get the proper result
my code is like this (dummy fqdn)
return fetch(“https://mywebsite.azurewebsites.net/test/testpage”, {
method: ‘GET’,
headers,
})
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.