Browser & Web Performance · Senior · Question 48 of 75

What do Trusted Types enforce?

Content-Security-Policy: require-trusted-types-for 'script'

Explanation

This turns DOM XSS into a reviewable problem: only a few policy functions can create HTML, and they can sanitize it.

Further reading

Problem with a question

Browser & Web Performance · Senior · question 48

Test yourself

Take the Browser & Web Performance · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz