Web Security · Junior · Question 65 of 75
What does the default-src directive do?
- 1It sets which page opens by default
- ✓Correct answer: It's the fallback for resource types that don't have their own directive, such as
img-srcorfont-src - 3It defines the default language of the page
Explanation
A policy often starts with default-src 'self' and then opens specific types, for example img-src 'self' https://cdn.example.com.