
How to Check Your Content Security Policy (and Read It)
Five practical ways to check a site's Content-Security-Policy: DevTools, curl, Report-Only mode, evaluators and a scanner. Plus what unsafe-inline, wildcards and missing directives really mean.
Stay up to date with the latest security best practices, tips, and insights to keep your website protected.

Five practical ways to check a site's Content-Security-Policy: DevTools, curl, Report-Only mode, evaluators and a scanner. Plus what unsafe-inline, wildcards and missing directives really mean.

Learn how to configure all essential security headers in Next.js using next.config.ts. Copy-paste examples for HSTS, CSP, X-Frame-Options, Permissions-Policy, and cross-origin headers — with real-world edge cases like OAuth and OG images.

Learn how the Permissions-Policy header restricts browser APIs like camera and geolocation. Reduce your attack surface and protect user privacy.

Secure your cookies against theft and misuse. Learn the essential cookie attributes, understand SameSite policies, and implement defense-in-depth for session management.

Master the essential HTTP security headers including Content-Security-Policy, HSTS, X-Frame-Options, and more. Learn implementation strategies with practical examples.