Threat model and trust boundaries
A policy copied from another site can block legitimate resources or appear protective while allowing unsafe inline scripts. CSP is defense in depth and does not replace output encoding or safe DOM APIs.
- Identify actors, assets and trust boundaries
- Choose controls that address the stated threat
- Test failure behavior and recovery paths