- Report-Only
- Content-Security-Policy
- Find where your host or CDN sets response headers, or add them in your server settings.
- Start with the low-risk ones: X-Content-Type-Options set to nosniff, and X-Frame-Options or frame-ancestors. Add Strict-Transport-Security only once HTTPS works everywhere.
- Add a Content Security Policy in Report-Only mode first, so it shows what it would block without breaking anything.
- When the reports are clean, enforce it, then test your forms, payments and embeds.
Example
Read the guidePublish a sitemap and robots.txtX-Content-Type-Options: nosniff
Content-Security-Policy: frame-ancestors 'self'
Content-Security-Policy-Report-Only: default-src 'self'