Skip to content
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

http(s) scheme for WebSocket gives an error anyway #21978

Closed
styhu opened this issue Nov 1, 2022 · 1 comment
Closed

http(s) scheme for WebSocket gives an error anyway #21978

styhu opened this issue Nov 1, 2022 · 1 comment
Labels
Content:HTTP HTTP docs help wanted If you know something about this topic, we would love your help!

Comments

@styhu
Copy link

styhu commented Nov 1, 2022

MDN URL

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/connect-src

What specific section or headline is this issue about?

Examples

What information was incorrect, unhelpful, or incomplete?

at least the WebSocket("https://not-example.com/") example is totally useless as the https scheme will raise an exception in the WebSocket interface, independently from the CSP mechanism, so not-example.com will not even be looked at

What did you expect to see?

I expected to understand how can I not specify the WebSocket protocol for ws://example.com/ in the connect-src and still be able to connect using WebSocket.

Do you have any supporting links, references, or citations?

https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/WebSocket#exceptions

Do you have anything more you want to share?

No response

MDN metadata

Page report details
@github-actions github-actions bot added needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. Content:HTTP HTTP docs Content:WebAPI Web API docs labels Nov 1, 2022
@sideshowbarker sideshowbarker added help wanted If you know something about this topic, we would love your help! and removed Content:WebAPI Web API docs needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Nov 7, 2022
@Josh-Cena
Copy link
Member

Fixed by #25220. But see also #26731; soon enough, if not now, http will be allowed in WebSocket.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Content:HTTP HTTP docs help wanted If you know something about this topic, we would love your help!
Projects
None yet
Development

No branches or pull requests

3 participants