- From: Anne van Kesteren <notifications@github.com>
- Date: Mon, 13 Jul 2015 08:26:01 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
Received on Monday, 13 July 2015 15:26:28 UTC
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