Re: [whatwg/fetch] Script-created redirects responses have no location URL (#1146)

> Safari seems to fail the fetch when you `respondWith(new Response(...302...))`.

Oh huh. A correction: Safari fails the fetch if you `respondWith(new Response(...302...))` with a relative Location header, but an absolute Location header is processed as a redirect. I wonder if they just resolve Location relative to `response.url`, and if that's null, so be it. That is consistent with what the spec says for network-constructed responses, except those (I think?) always have a response URL.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/1146#issuecomment-767858563

Received on Tuesday, 26 January 2021 22:27:21 UTC