JavaScript · Senior · Question 66 of 75

What do Trusted Types enforce?

Explanation

Enabled via CSP require-trusted-types-for 'script', they turn DOM XSS into a reviewable set of policies. Frameworks like Angular support them.

Further reading

Problem with a question

JavaScript · Senior · question 66

Test yourself

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

Take this quiz