I have a worker where I would like to issue requests to
When I do this, I get back a Response object with status 502 and statusText “Bad Gateway”. In the body I can see the message
TLS peer’s certificate is not trusted; reason = Hostname mismatch
(The full body can be seen at https://gist.github.com/dentarg/ffec851598406611cd3f8c377c3957f6)
https://220.127.116.11 has a legit cert, I can make requests to it from Chrome, curl and with
fetch() in the Firefox console.
Is it that the Cloudflare backend for
fetch() doesn’t support IP addresses in in X509v3 Subject Alternative Name? Is it intentionally or a bug?