🎙 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 5 of 10

In the header checker output, why is the cookie flagged even though it has Secure?

In the header checker output, why is the cookie flagged even though it has Secure?

  1. A.Because it has a Path
  2. B.It is missing HttpOnly and SameSite
  3. C.Because the value is too short
  4. D.Because HSTS is set
Answer & explanation

Correct answer: It is missing HttpOnly and SameSite

The audit prints "missing HttpOnly" and "missing SameSite" — Secure alone doesn't stop JavaScript access or cross-site sending.

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 →