Page output · Question 12 of 12

How does an extension ship its own CSP rules?

1 answer is correct. Hard

Show answer

Answer

  • C Via Configuration/ContentSecurityPolicies.php, which returns a map of Scope (frontend or backend) to MutationCollection objects

Explanation

Every mutation names mode, directive and sources; the scope is mandatory, so a rule never applies automatically to frontend and backend at once.

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