Content Security Policy (CSP) is a security standard that lets a website owner define which sources a browser may load for scripts, styles, images and other resources. It mitigates cross‑site scripting and data‑injection attacks by allowing only authorised origins, and it is not a firewall.