FlashcardNot attempted
The header bundle
Recall it before you reveal
Name the five security headers you would add to every response and what each one does.
Space to reveal
Show answer & explanation
- Content-Security-Policy: which scripts, styles and frames may load (
frame-ancestors 'none'also stops clickjacking) - X-Content-Type-Options: nosniff: the browser trusts the declared Content-Type instead of guessing
- Strict-Transport-Security: always use HTTPS for this site (and subdomains), no downgrade
- Referrer-Policy: strict-origin-when-cross-origin: send only the origin to other sites, not the full URL
- Permissions-Policy: camera=(), microphone=(), geolocation=(): turn off device APIs you do not use