Web Security · Junior · Question 65 of 75

What does the default-src directive do?

Explanation

A policy often starts with default-src 'self' and then opens specific types, for example img-src 'self' https://cdn.example.com.

Further reading

Problem with a question

Web Security · Junior · question 65

Test yourself

Take the Web Security · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz