You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scenario: You are developing a web application that talks to HTTPS and WSS endpoints. You would like to specify connect-src 'self' so that you can make XHR requests. You would also like to make websocket requests to the same server.
Because 'self' matches host, port and scheme, this is impossible unless you enumerate or match all domains that the WSS server might run on. Many modern web applications use both HTTP and websockets; you establish an HTTP connection, download some assets, then establish a websocket connection.
The utility of 'self' is that you don't have to enumerate or match all possible domains - but this utility is unavailable if the application expects users to make websocket connections from their browsers.
The text was updated successfully, but these errors were encountered:
Scenario: You are developing a web application that talks to HTTPS and WSS endpoints. You would like to specify
connect-src 'self'
so that you can make XHR requests. You would also like to make websocket requests to the same server.Because
'self'
matches host, port and scheme, this is impossible unless you enumerate or match all domains that the WSS server might run on. Many modern web applications use both HTTP and websockets; you establish an HTTP connection, download some assets, then establish a websocket connection.The utility of
'self'
is that you don't have to enumerate or match all possible domains - but this utility is unavailable if the application expects users to make websocket connections from their browsers.The text was updated successfully, but these errors were encountered: