Skip to main content

What is Content Security Policy?

security

A Content Security Policy tells browsers which sources of scripts, styles and frames are legitimate, sharply reducing what injected code can do. It is a defence-in-depth layer on top of input validation. Start in report-only mode, watch violations, then enforce gradually.

The short answer above covers the decision most buyers are making. The main entry for content security policy carries the complete definition, a usage note and the terms most often confused with it, so the two pages together answer both the quick question and the follow-ups.

Related topics