-
Notifications
You must be signed in to change notification settings - Fork 349
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
Add Last-Event-ID
to CORS-safelisted request headers
#1788
base: main
Are you sure you want to change the base?
Conversation
@yoichio @KershawChang @youennf any final thoughts? |
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 add your name to the Acknowledgments section! (Not required.)
76fc1a2
to
7a0ead3
Compare
Thanks! Done :) |
Gecko is interested, but how likely will this cause some webcompat issues? Is #568 (comment) about the relevant change? Those numbers are going up, but still rather low. Edit: looks like it was discussed here #568 (comment) |
Since EventSource implementations in most environments already send this header without CORS preflight request, it makes sense to make it a safelisted header. See whatwg#568
7a0ead3
to
b5a68d4
Compare
From the WHATNOT meeting on 2024-12-05:
👋 PR author here. @yoichio commented on the related issue with this link which contains some statistics on this. It seems to me like these numbers are still very low, but I am also not a browser developer/maintainer, so I don't know what is generally considered low numbers on these sort of topics. I'm interesting in moving this forward - it seems to have interest from Gecko and WebKit, and I have not heard any opposition yet. Should this be raised again in an upcoming WHATNOT meeting, or is there something I can do on my side to move this along? |
Implementation bugs still have to be filed. That would help a bit. I'l flag it for the next meeting as well to check there's no opposition. (If you're up for it implementing it in a browser can also do wonders.) |
@rexxars you can file an MDN issue now. In principle this is ready to land in the specification, but I'm a little worried that the browser patches don't seem to account for cc @ricea |
I realized this myself after your feedback on the WebKit change, thank you for that. I will go through each of the patches and ensure that they test both safe and non-safe |
One thing I realized while implementing this in browsers; The EventSource spec says to set In the Gecko codebase this was fairly easy to implement since you manually have to tell it which headers to consider. In WebKit and Chromium however, you only set the preflight policy to |
Oh that does make this harder. Hmm. What Gecko does is a hack that I wish were not possible as it could allow for all kinds of shenanigans we don't really want to allow. We'd either have to set the @ricea @smaug---- thoughts? |
Since EventSource implementations in most environments already send this header without CORS preflight request, it makes sense to make it a safe-listed header.
See #568 for more background.
Last-Event-ID
to CORS-safelisted headers web-platform-tests/wpt#49257(See WHATWG Working Mode: Changes for more details.)
Preview | Diff