Content Security Policy is permissive
A policy is enforced, but script-src allows 'unsafe-inline'.
- Content-Security-Policy
- default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob:; font-src 'self'; connect-src 'self'; object-src 'none'; base-uri 'self'; form-action 'self'; frame-ancestors 'none'
Why it matters ↓Why it matters ↑
CSP limits which scripts can run. For dApps it is the main browser-side defence against an injected script draining connected wallets.
How we check: Reads the Content-Security-Policy header and flags policies that still allow inline or arbitrary-origin scripts.
https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP