In short
A Content Security Policy (CSP) is an HTTP header that tells the browser which scripts may run, limiting the damage from cross-site scripting (XSS). PageSpeed checks whether you have one and whether it's strict (nonce- or hash-based). It doesn't affect the Best Practices score. Adding a strict CSP is a real security win, but it can break sites if done carelessly, so start in report-only mode.
This appears under Trust and Safety on most sites, even ones scoring 100, because it's informational.
A cautious path
Add
Content-Security-Policy-Report-Onlywith a basic policy.Watch the browser console and reports for what would be blocked.
Adjust, then switch to the enforcing header.
Content-Security-Policy-Report-Only: script-src 'self' https://www.googletagmanager.com; object-src 'none'; base-uri 'self'
Sites with many third-party tags or inline scripts (common with page builders) need more work; a developer should own this.
This guide isn't affiliated with or endorsed by Google.
Related issues
Sources and references
Chrome for Developers, Ensure CSP is effective against XSS attacks

About the author
Nazmul Nikhil
Head of SEO & Assistant Manager, Digital Marketing at Notionhive
SEO and AI search consultant in Dhaka, Bangladesh, helping small and mid-size businesses in the USA, UK, Australia and Canada.



