The pasted Content-Security-Policy has no directives.
CSP_EMPTY_POLICY · Severity: Error
- Error
CSP_EMPTY_POLICYThe pasted Content-Security-Policy has no directives.
After the optional header name nothing is left that reads as a directive, such as default-src 'self'. A browser treats an empty policy as no policy at all.
Recommendation: Paste the header value, for example default-src 'self'.
Reported by
Available through the API
Related findings
- Info
CSP_DEPRECATED_DIRECTIVEThe policy uses a directive that has been removed from CSP. - Warning
CSP_DUPLICATE_DIRECTIVEA directive appears twice in one policy, and browsers ignore the second one. - Info
CSP_MISSINGThe HTTPS site sends no Content-Security-Policy header. - Info
CSP_NO_BASE_URIThe policy does not restrict the base element (base-uri). - Warning
CSP_NO_DEFAULT_SRCThe policy has no default-src directive. - Warning
CSP_NO_OBJECT_SRCPlugin content (object and embed elements) is not restricted.