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
Fetch doesn't respect mode: "same-origin" #661
Comments
Yes, we don't support Even though it could technically be possible to emulate some of these features, such as This polyfill never aimed to implement the entire spec; just the parts that cover 80% of all use-cases. |
@mislav Thanks for the quick response! I see where you're coming from but I do have a couple of points to bring up - I hope you don't mind. First, you referred to "these features" in aggregate and linked to a generic "caveats" section but did not actually address the specific issue I raised. So just to reiterate, this issue was specifically about Second, regarding your statement that
Respectfully, can I ask that you make this stance clearer and more consistent in your documentation? Because statements like and (emphasis mine) make it seem like the criteria for a feature's inclusion are based more on it being feasible (and spec-compliant) than covering "80% of all use-cases" (according to whom?) And I get that goals change, but even the README for this project at one point stated that
All this to say - although you're certainly within your rights to do so, personally I don't think this issue should be dismissed out of hand. Especially when I was offering to do the work. |
For sure! I just pushed some clarifications.
Definitely; feasibility (as evident by size and maintainability of implementation) is our main criteria.
80/20 is an expression rather than a statistic.
And we're thankful for the offer! But we also need to be mindful that everything we accept, we will probably need to maintain for years to come. And personally, I'm wary of maintaining security features that are supposed to be browser internals. |
Per the Fetch spec,
It appears that the polyfill doesn't enforce this. I have created a test page to demonstrate this issue, and how behaviour differs between the native implementation (tested on Chrome) and the polyfill.
I believe it's possible to emulate this on top of XHR by inspecting the various origins at the right times. I'd be happy to dive into the spec and work on a PR (some time in the next few weeks) if a maintainer here signals interest in landing such a change.
The text was updated successfully, but these errors were encountered: