Browser & Web Performance · Senior · Question 44 of 75

What does 'strict-dynamic' in a CSP do?

Content-Security-Policy: script-src 'nonce-abc' 'strict-dynamic'; object-src 'none'; base-uri 'none'

Explanation

This makes strict CSP practical with bundlers and loaders, without long, bypassable domain allowlists.

Further reading

Problem with a question

Browser & Web Performance · Senior · question 44

Test yourself

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

Take this quiz