Closed (fixed)
Project:
Content-Security-Policy
Version:
8.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
25 Jan 2019 at 14:59 UTC
Updated:
13 Feb 2019 at 08:04 UTC
Jump to comment: Most recent
Comments
Comment #2
gappleCurrent behaviour is to only allow
httpandhttpsprotocols in a policyhttps://cgit.drupalcode.org/csp/tree/src/Form/CspSettingsForm.php?id=8.x...
I'm going to have to dig a bit to verify this, but my current understanding is that
wss:should be allowed by specifyinghttps:.Comment #3
gappleThere's currently an open issue on the CSP spec - #332: Remove mentions of the ws\wss schemes in CSP
Unless a current browser is blocking web socket connections with a policy like
connect-src: https://example.org, but allowing them withconnect-src: wss://example.org, then I think this just needs to be documented.Comment #4
gappleI've added an FAQ page to the module documentation with a note on this issue.
https://www.drupal.org/docs/8/modules/content-security-policy/frequently...
Please re-open with more information if you're still encountering issues.
Comment #6
dorficus commentedI'm still running into this issue getting the following error:
Refused to connect to 'wss://some.socket.com/api/v1/client/ws' because it violates the following Content Security Policy directive: "connect-src 'self' https://*.socket.com".I'm going to reopen this issue for further discussion.