Back to Developer Roadmap

Content Security Policy

src/data/roadmaps/html/content/csp@9FAlTHlRj_DVjbpuiGRzD.md

4.0818 B
Original Source

Content Security Policy

Content Security Policy (CSP) is a security standard introduced to prevent cross-site scripting (XSS), clickjacking, and other code injection attacks. It works by allowing you to define a whitelist of sources that the browser is permitted to load resources from. This helps to control the origins of scripts, stylesheets, images, and other assets, effectively reducing the attack surface of a web application.

Visit the following resources to learn more: