Access-Control-Allow-Origin: *
| CORS: allow requests from any origin |
Access-Control-Allow-Origin: https://example.com
| CORS: allow requests from specific origin only |
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS
| CORS: allowed HTTP methods for preflight |
Access-Control-Allow-Headers: Content-Type, Authorization
| CORS: allowed request headers |
Access-Control-Allow-Credentials: true
| CORS: allow cookies/credentials in cross-origin requests |
Access-Control-Max-Age: 86400
| CORS: cache preflight response for 24 hours |
Access-Control-Expose-Headers: X-Custom-Header
| CORS: make custom headers readable by client |
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
| HSTS: force HTTPS for 1 year, all subdomains, eligible for preload list |
Strict-Transport-Security: max-age=63072000
| HSTS: force HTTPS for 2 years |
Content-Security-Policy: default-src 'self'
| CSP: only allow resources from same origin |
Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src *
| CSP: common permissive policy |
Content-Security-Policy: upgrade-insecure-requests
| CSP: automatically upgrade HTTP to HTTPS |
Content-Security-Policy-Report-Only: default-src 'self'; report-uri /csp-report
| CSP in report-only mode (doesn't block, just reports) |
X-Frame-Options: DENY
| Prevent page from being embedded in iframe |
X-Frame-Options: SAMEORIGIN
| Allow iframe embedding only from same origin |
X-Content-Type-Options: nosniff
| Prevent MIME type sniffing — trust Content-Type header |
X-XSS-Protection: 0
| Disable browser XSS filter (modern CSP is better) |
Referrer-Policy: strict-origin-when-cross-origin
| Send full URL for same-origin, only origin for cross-origin |
Referrer-Policy: no-referrer
| Never send Referer header |
Permissions-Policy: camera=(), microphone=(), geolocation=()
| Disable specific browser features |
Permissions-Policy: camera=(self), fullscreen=*
| Allow camera for same origin, fullscreen for all |
Cross-Origin-Opener-Policy: same-origin
| COOP: isolate browsing context from cross-origin popups |
Cross-Origin-Embedder-Policy: require-corp
| COEP: require CORS or CORP for all subresources |
Cross-Origin-Resource-Policy: same-origin
| CORP: prevent resource from being loaded cross-origin |