Web Security · Junior · Question 45 of 75

What does the HttpOnly cookie attribute do?

Explanation

An XSS script can't steal an HttpOnly session cookie. It can still send requests that use it, so HttpOnly limits damage rather than preventing XSS.

Further reading

Problem with a question

Web Security · Junior · question 45

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