I have a worker i’ve deployed to enable a reverse proxy under my subdomain.
I have the route for it setup as .domain.com/app/
The code for the worker is–
addEventListener("fetch", event => {
event.respondWith(handleRequest(event.request))
})
async function handleRequest(request) {
var url = new URL(request.url)
url.hostname = "other.uc.r.appspot.com"
return await fetch(url, request)
}
In the worker quick edit, i’ve validated that this works.
However, when i make requests to domain.com/app/anything, it never routes the traffic to the worker.