CSP and security headers / Policy Builder
Build a candidate CSP policy
The CSP Policy Builder offers templates and a generated policy to review and copy. It is a starting point for configuration, not proof that the policy will work on every page.
- Choose a template appropriate to the site and review its allowed sources and directives.
- Include the site's correct reporting destination.
- Deploy the candidate in report-only mode through the system that owns the headers.
- Test important forms, checkout, booking, embeds, and representative pages before enforcing it.
Use report evidence to refine the policy. Do not treat policy generation as an automatic visitor-journey test.