Browser & Web Performance · Senior · Question 46 of 75

Why should a strict CSP include base-uri 'none' (or 'self')?

Explanation

Even nonced scripts loaded by relative path would follow the injected base URL.

Further reading

Problem with a question

Browser & Web Performance · Senior · question 46

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