Browser & Web Performance · Junior · Question 65 of 75

What does the HttpOnly flag on a cookie do?

Explanation

An XSS payload then can't read a session cookie directly, which limits the damage.

Further reading

Problem with a question

Browser & Web Performance · Junior · question 65

Test yourself

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

Take this quiz