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

Quiz: Browser Storage and Cookies · Question 6 of 10

What does the Secure attribute do?

What does the Secure attribute do?

  1. A.Encrypts the cookie value
  2. B.Sends the cookie only over HTTPS connections
  3. C.Blocks other websites from reading localStorage
  4. D.Makes the cookie HttpOnly
Answer & explanation

Correct answer: Sends the cookie only over HTTPS connections

Secure prevents the cookie from travelling over unencrypted HTTP.

Can you get the rest right without peeking?

Take the timed Quiz: Browser Storage and Cookies quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →