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.

Certifications & exams

Which exam comes next?

You can already practise for 19 exams, and 21 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications