This extension helps web masters to test web application functionality with Content Security Policy (CSP) version 2.0 implemented.
You can install CSP Tester from Chrome Web Store
Typical workflow looks like:
- Open the extension window
- Add into the URL Pattern a regular expression for the site that you want to test, for example
*://yoursite.com/*
(CSP Tester uses Chrome Match Patterns) - Tick the e.g. "self" checkbox, check "Active" and Save the changes
- Open the Developer Tools and navigate to the tested site
- Confirm a number of CSP violations reported in the Developer Tools Console as well as possible visual changes
- Make changes in the policy based on these reports
To analyze CSP logs you can use CSP Reporter