← 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?
- A.Encrypts the cookie value
- B.Sends the cookie only over HTTPS connections
- C.Blocks other websites from reading localStorage
- 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 →