Back to Glossary
SecurityIntermediate

What is Content Security Policy (CSP)?

A security header that tells browsers which sources of content are trusted for your website.

Why It Matters

CSP is one of the strongest defences against XSS attacks by preventing browsers from loading untrusted scripts.

Real-World Example

A CSP header that only allows scripts from your own domain and a trusted analytics provider.

“Understanding terms like Content Security Policy (CSP) matters because it helps you have better conversations with developers and make smarter decisions about your software. You do not need to be technical. You just need to know enough to ask the right questions.”

Callum Holt, Founder, 13Labs

From definition to deployment

Knowing the term is step one. Using it in something real is the rest.