- How many HTTP headers are there?
- Over 200 registered with IANA, plus dozens of non-standard 'X-' headers in common use. The reference covers the ~100 most relevant for web development and API design.
- What's the difference between request and response headers?
- Request headers are sent by the client (Authorization, Accept, User-Agent). Response headers are sent by the server (Content-Type, Set-Cookie, Cache-Control). Some headers appear in both (Content-Type in request bodies and responses).
- Which security headers should every web app send?
- Content-Security-Policy, Strict-Transport-Security, X-Frame-Options (or CSP frame-ancestors), X-Content-Type-Options: nosniff, Referrer-Policy, and Permissions-Policy are the core security header set.