The policy has no default-src directive.
CSP_NO_DEFAULT_SRC · Severity: Warning
- Warning
CSP_NO_DEFAULT_SRCThe policy has no default-src directive.
default-src is the fallback for every fetch directive the policy leaves out. Without it, any resource type without its own directive (fonts, frames, workers, media) can load from anywhere.
Recommendation: Add default-src 'self' (or 'none') and open up only what the site needs.
Reported by
Available through the API
Related findings
- Info
CSP_NO_BASE_URIThe policy does not restrict the base element (base-uri). - Warning
CSP_NO_OBJECT_SRCPlugin content (object and embed elements) is not restricted. - 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. - Error
CSP_EMPTY_POLICYThe pasted Content-Security-Policy has no directives. - Info
CSP_MISSINGThe HTTPS site sends no Content-Security-Policy header.