🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: HTTPS, Cookies and Headers: all 10 questions

Quiz: HTTPS, Cookies and Headers · Question 7 of 10

Which cookie flag ensures the cookie is never sent over plain HTTP?

Which cookie flag ensures the cookie is never sent over plain HTTP?

  1. A.HttpOnly
  2. B.Secure
  3. C.SameSite=Lax
  4. D.Max-Age
Answer & explanation

Correct answer: Secure

Secure cookies travel only over HTTPS, so they do not leak on open Wi-Fi.

Can you get the rest right without peeking?

Take the timed Quiz: HTTPS, Cookies and Headers quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →