CSP Policy Analyzer
Parses and evaluates Content Security Policy headers using csp-parse and csp-evaluator libraries. Identifies overly permissive directives, missing protections, and generates tightened policy recommendations.
Installation
Use the upstream install or setup path that matches your environment:
- npm install csp_evaluator
- npm install && tsc --build
- npm install && npm test
Basic usage or getting-started notes:
To build, run:
To run unit tests, run:
Example Usage
Extracted from upstream docs: https://raw.githubusercontent.com/google/csp-evaluator/HEAD/README.md