Browser & Web Performance · Junior · Question 66 of 75

What does the Secure flag on a cookie do?

Explanation

It stops the cookie from leaking over plain HTTP. SameSite=None cookies must also be Secure.

Further reading

Problem with a question

Browser & Web Performance · Junior · question 66

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