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

What does the HSTS header do?

What does the HSTS header do?

  1. A.Hides the server version
  2. B.Tells the browser to always use HTTPS for the domain
  3. C.Blocks inline scripts
  4. D.Encrypts the database
Answer & explanation

Correct answer: Tells the browser to always use HTTPS for the domain

Strict-Transport-Security makes the browser upgrade every request to HTTPS for max-age seconds.

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 →