The HTTP Content-Security-Policy
(CSP) connect-src
directive restricts the URLs which can be loaded using script interfaces. The APIs that are restricted are:
Note: connect-src 'self'
does not resolve to websocket schemes in all browsers, more info in this issue.
CSP version | 1 |
---|---|
Directive type | Fetch directive |
default-src fallback | Yes. If this directive is absent, the user agent will look for the default-src directive. |