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

ActionCable doesn't work on Safari due to connect-src: 'self' having a different origin with a different protocol #290

Closed
joshmcarthur opened this issue May 24, 2022 · 1 comment

Comments

@joshmcarthur
Copy link
Contributor

connect-src: 'self' only allows connections to the same origin - which wss://my-host-name is not, since the protocol is different. This is fixed in an upcoming Safari version, but is probably worth fixing internally as well since it's perfectly balanced between not being picked up in testing potentially, and also can have quite a large impact (no Turbo broadcasts or other ActionCable stuff will work)

If we have a reference to a host to mail to, we might be able to use that?

@eoinkelly
Copy link
Contributor

w3c/webappsec-csp#7 (comment) says

this should be fixed in the next Safari release 16 (maybe even 15.5 or 15.6 if those will happen)

The current version of Safari is 15.6. Can we verify that this issue is fixed in 15.6?

I'm tempted to do nothing here because this problem is going away and any app built with this template would be at least 3-6 months from launch which gives users even more time to upgrade their Safari.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants