Glossary Web and Security

Web and Security

Content Security Policy (CSP)

A browser security feature that helps prevent or reduce certain attacks, mainly cross-site scripting, where an attacker injects malicious code into a website.

Source MDN Web Docs (Mozilla), Content Security Policy (CSP) Checked October 26, 2026

See it

This is mainly used as a defense against cross-site scripting (XSS) attacks, in which an attacker is able to inject malicious code into the victim's site.
MDN Web Docs (Mozilla), Content Security Policy (CSP)

Sources

  1. MDN Web Docs (Mozilla), Content Security Policy (CSP)

Cite this term

Interstellar Kinetics. "Content Security Policy." IKE Glossary. Checked October 26, 2026. interstellarkinetics.com/glossary/content-security-policy

Educational information.