Exam Studios
Exams Comparisons Glossary Reviews Exam Checklist
Download App

CSP (Content Security Policy)

CSP is a browser security standard that reduces XSS by restricting what scripts can run.

Updated: 2026-03-06

Definition

Content Security Policy (CSP) lets a site define which sources of scripts, styles, and other resources are allowed.

It can block inline scripts and prevent loading code from untrusted domains.

Key points

Common mistakes

Related exams

Related terms

Want to practice this in exam-style questions?

Use the mini tests on each exam page, then continue in the app for offline packs and detailed explanations.

Go to exams