KKorrali Web

Security headers

Content-Security-Policy header

CSP tells the browser which sources of scripts, styles, images and frames are allowed on your pages.

Recommended value

Content-Security-Policy: default-src 'self'; object-src 'none'; base-uri 'self'; frame-ancestors 'self'

What it protects against

Cross-site scripting (XSS) and data injection, by blocking scripts from sources you did not approve. frame-ancestors also prevents clickjacking.

Before you turn it on

A strict CSP can break analytics, fonts and inline scripts. Start with Content-Security-Policy-Report-Only, watch the reports, then enforce. The value here is a starting point you will need to extend.

How to add Content-Security-Policy

Check your site's headers now

Korrali Web scans your site and shows which security headers are missing or misconfigured.

Run a free scan