Content security policy · Question 8 of 12
What is a content security policy (CSP)?
1 answer is correct. Easy
Show answer
Answer
- C Rules in the HTTP header defining which sources are allowed
Explanation
The server sends rules such as script-src or img-src. The browser enforces them and blocks what is not allowed. Violations appear in the browser console.