Web Security · Middle · Question 13 of 75

How does a nonce-based CSP work?

Explanation

An injected script doesn't know this response's nonce, so it's blocked. A nonce that never changes gives no protection.

Further reading

Problem with a question

Web Security · Middle · question 13

Test yourself

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

Take this quiz