Re: [whatwg/fetch] Header to opt out of opaque redirect (#601)

Ah.  XMLHttpRequest changes the responseURL property after following redirects - https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/responseURL - so we can at least get some sort of hacky attempt if we need to add headers when the request is redirected.  Check for a 4XX, check that the URL is different, re-request. :)

Since you mentioned it, looks like `Response.url` changes too, so I _can_ use fetch for this redirect hack.  Thanks!

-- 
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/601#issuecomment-614602992

Received on Thursday, 16 April 2020 11:48:04 UTC