EXERCISE 2 — Key security headers, what they do, and why "missing" = misconfig =============================================================================== THE KEY SECURITY HEADERS: 1. Strict-Transport-Security (HSTS) e.g. Strict-Transport-Security: max-age=31536000; includeSubDomains DOES: tells the browser to ONLY use HTTPS for this site for max-age seconds — it auto-upgrades and refuses plain HTTP, closing the SSL-stripping first-hop gap. RELATES TO: the HTTPS course (HSTS chapter) — defends against downgrade/SSL-stripping man-in-the-middle. 2. Content-Security-Policy (CSP) e.g. Content-Security-Policy: default-src 'self'; script-src 'self' 'nonce-...' DOES: restricts where scripts/styles/etc. may load and execute from, so an injected inline