-
Notifications
You must be signed in to change notification settings - Fork 330
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
Safelist Content-Length header #626
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, but this is a little wrong. Also, would you like to add your name to the Acknowledgments section?
fetch.bs
Outdated
@@ -472,7 +473,6 @@ is a <a>byte-case-insensitive</a> match for one of | |||
<li>`<a http-header><code>Access-Control-Request-Headers</code></a>` | |||
<li>`<a http-header><code>Access-Control-Request-Method</code></a>` | |||
<li>`<code>Connection</code>` | |||
<li>`<code>Content-Length</code>` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't remove this, it's still a forbidden header name.
For tests I suspect there are resources that need changes, |
Just to be sure @annevk - that would be a separate PR changing https://github.com/w3c/web-platform-tests/blob/master/fetch/api/cors/cors-filtering.js#L59 ? |
Yeah, for normative changes there also needs to be a PR against web-platform-tests ensuring the change is tested (and any existing tests that need to be modified are modified) and browser bugs need to be filed pointing to both PRs ensuring everyone is notified. Let me know how much of that you're willing to take on. I can help. |
At a high level this is documented at https://whatwg.org/working-mode#changes by the way, but perhaps we should also have a more concrete day-to-day guide. |
I'm looking at this as an opportunity to learn the process better - if this gets annoying feel free to go ahead and make changes. I'll try to follow up with the tests tomorrow morning. |
@benjamingr did you get around to making tests? |
@annevk sorry, not yet :( |
@shacharz great, thanks! Could you file a bug against https://bugs.webkit.org/enter_bug.cgi?product=WebKit&component=HTML%20DOM too? |
updated |
Thanks @benjamingr and @shacharz; hopefully this small change is picked up quickly by everyone. |
See whatwg/fetch#626 for details.
Awesome :) Thanks and thanks @shacharz |
…by default, a=testonly Automatic update from web-platform-testsCORS: safelist Content-Length header See whatwg/fetch#626 for details. -- wpt-commits: 407ecdff87af8aeceaa07cbc71aac9ec355d4334 wpt-pr: 10930
…by default, a=testonly Automatic update from web-platform-testsCORS: safelist Content-Length header See whatwg/fetch#626 for details. -- wpt-commits: 407ecdff87af8aeceaa07cbc71aac9ec355d4334 wpt-pr: 10930
…by default, a=testonly Automatic update from web-platform-testsCORS: safelist Content-Length header See whatwg/fetch#626 for details. -- wpt-commits: 407ecdff87af8aeceaa07cbc71aac9ec355d4334 wpt-pr: 10930 UltraBlame original commit: b784d4f3615eff3bc00f986fc460fd48454075a1
…by default, a=testonly Automatic update from web-platform-testsCORS: safelist Content-Length header See whatwg/fetch#626 for details. -- wpt-commits: 407ecdff87af8aeceaa07cbc71aac9ec355d4334 wpt-pr: 10930 UltraBlame original commit: b784d4f3615eff3bc00f986fc460fd48454075a1
…by default, a=testonly Automatic update from web-platform-testsCORS: safelist Content-Length header See whatwg/fetch#626 for details. -- wpt-commits: 407ecdff87af8aeceaa07cbc71aac9ec355d4334 wpt-pr: 10930 UltraBlame original commit: b784d4f3615eff3bc00f986fc460fd48454075a1
Content-Length was not part of the original set of safelisted response headers See Also whatwg/fetch#626
Fixes: #622
Preview | Diff