Web Security · Senior · Question 5 of 75

Why are secure defaults important in a shared internal library or framework?

Explanation

Auto-escaping templates and HttpOnly session cookies by default prevent entire bug classes. Unsafe options should need explicit, visible opt-in.

Further reading

Problem with a question

Web Security · Senior · question 5

Test yourself

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

Take this quiz