JavaScript · Senior · Question 67 of 75

How does SameSite=Lax on a session cookie help against CSRF?

Explanation

Browsers default to Lax when unspecified. Strict also blocks cross-site navigations; None requires Secure. CSRF tokens are still advised for sensitive actions.

Further reading

Problem with a question

JavaScript · Senior · question 67

Test yourself

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

Take this quiz