Web Security · Junior · Question 5 of 75

What is defense in depth?

Explanation

Escaping output, a Content Security Policy and HttpOnly cookies each reduce XSS damage on their own. Together they cover cases where one layer has a bug.

Further reading

Problem with a question

Web Security · Junior · question 5

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