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

Learn More at buildDay Melbourne

Want to understand these concepts hands-on? Join our one-day workshop and build a real web application from scratch.