Web Security · Middle · Question 16 of 75

Why is a CSP like script-src 'self' https://cdn.example.com https://www.google.com considered weak?

Explanation

Research showed most allowlist policies can be bypassed this way. Nonces or hashes with 'strict-dynamic' are the recommended approach.

Further reading

Problem with a question

Web Security · Middle · question 16

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