Re: [fetch] Add a bit to Opaque Responses to distinguish redirects (#79)

You can observe redirects with `fetch(url, {redirect:"error"})` too. I guess this helps in the case where you have `fetch(crossOriginURL, {mode:"no-cors"})` and there's potentially a redirect, because either way you'd get an opaque response back. And maybe in the `fetch(sameOriginURL, {mode:"no-cors"})` case if you're only looking at the response and not the url.

It seems safer however to use `fetch(url, {redirect:"error"})` as in that case you'll never get a response you didn't expect.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/79#issuecomment-120967254

Received on Monday, 13 July 2015 15:26:28 UTC