Web Security · Senior · Question 13 of 75

A policy uses a nonce, but the HTML page is cached by a CDN and served to many users. What's wrong?

Explanation

Nonces must be unique per response. For cached pages use hash-based CSP or don't cache the HTML.

Further reading

Problem with a question

Web Security · Senior · question 13

Test yourself

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

Take this quiz