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: base-uri, object-src, frame-ancestors, form-action.
- Content-Security-Policy
- base-uri 'self' https://static.jup.ag https://static-nsc8aacry.preview.jup.ag; object-src 'none'; frame-ancestors 'self'; form-action 'self'
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