Ben
Ben
CDCloudflare Developers
Created by Ben on 11/2/2024 in #pages-help
Bug: Fetch() returns nonsense 307 when called under a pages domain
Fun bug for you. foo.domain.com is a pages domain - works great btw! I mounted a worker at foo.domain.com/api that does a fetch - the fetch target is a digital ocean load balancer at foo-api.domain.com In this case, domain.com is managed by cloudflare but foo-api.domain.com has NS pointed to digital ocean. My fetch returns, from cloudflares servers "307 https://foo-api.domain.com" -- it is 307'd to itself. This behavior doesn't happen if i use the workers.dev domain for my worker, then the fetch works fine. But when the worker lives under foo.domain.com (pages domain) it behavses this way.
8 replies