Content Security Policy does not restrict scripts
A policy is set, but it has no script-src or default-src directive, so any injected script will still run. Directives present: upgrade-insecure-requests.
- Content-Security-Policy
- upgrade-insecure-requests
script-src (or default-src) directive listing the origins the app loads scripts from, e.g. script-src 'self' 'nonce-…' 'strict-dynamic'; object-src 'none'; base-uri 'self'.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