-
Notifications
You must be signed in to change notification settings - Fork 319
How does networkFetch handle redirects? #47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I think we should offer an API that does not follow redirects automatically. I also think that networkFetch (which should just be fetch) should not be introduced by this specification, but I guess it's fine for now so we have something to reason about. |
Without it we're unable to do AppCache's FALLBACK feature. As in, try the network & do something else on failure. |
All I'm saying is that you don't want to put all these different features that make a lot of sense outside this specific worker context as well, in the same specification. Because at that point you're doing the much feared scenario solving rather than building a layered architecture. |
Ahh yes, makes sense |
...but we can't solve this via XHR, so we need something that returns As for who introduces |
per today's f2f, regarding the basic policy, we decided:
There's a relativity principle of redirects: each context can't see the redirects, but the layer "behind" it can. |
We've had quite a lot more discussion in the last hour and have come to a different conclusion:
The motivator here is an xss-amplification due to HTTP-only cookie handling and capability URL leakage. The new resolution preserves the security properties of current browser behavior. |
Assuming this is either superseded by or a duplicate of #412 |
No it's not a duplicate. 304 is not a redirect... |
Handling redirects is completely spelled out in the specification I think. They are followed. |
Tracked at crbug.com/402389 for Blink. |
If a redirect is issued, I want to know about it in case it's a captive portal.
The text was updated successfully, but these errors were encountered: