← 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?
- A.Hides the server version
- B.Tells the browser to always use HTTPS for the domain
- C.Blocks inline scripts
- 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 →