Web Security · Junior · Question 32 of 75

What does SameSite=Lax on a session cookie do?

Explanation

With Lax, a form POST from another site arrives without the cookie, which blocks classic CSRF. Modern browsers use Lax by default when the attribute is missing.

Further reading

Problem with a question

Web Security · Junior · question 32

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