Web Security · Senior · Question 14 of 75

Why can a CSP allowing https://cdn.jsdelivr.net be bypassed?

Explanation

Public CDNs and domains with JSONP endpoints make host allowlists unsafe. Pin with SRI or move to nonces with 'strict-dynamic'.

Further reading

Problem with a question

Web Security · Senior · question 14

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