How to use it
Build, parse, and evaluate a Content-Security-Policy with directive explanations, warnings, and a script hash and nonce helper. Add Content-Security-Policy directives above, then review the generated header and checks.
Example
Input directives: default-src 'self'; object-src 'none'
Output: Content-Security-Policy: default-src 'self'; object-src 'none'Limits and behavior
- The evaluator reports risky or conflicting directives but cannot verify your application routes.
- Hash input is used only to calculate a local digest.