← All topics
Quiz: HTTPS, Cookies and Headers: questions with answers
10 questions, each with the answer and a short explanation.
Take the timed quiz + get a certificate →- Q1. Which cookie flag stops JavaScript (and therefore most XSS attacks) from reading the session cookie?
- Q2. What does the HSTS header do?
- Q3. A site with a valid HTTPS certificate is:
- Q4. Which header helps prevent clickjacking?
- Q5. In the header checker output, why is the cookie flagged even though it has Secure?
- Q6. Which three things does TLS (HTTPS) provide?
- Q7. Which cookie flag ensures the cookie is never sent over plain HTTP?
- Q8. What is the downside of SameSite=Strict for a session cookie?
- Q9. What does the header X-Content-Type-Options: nosniff prevent?
- Q10. Why is leaving debug mode on in production dangerous?