HTTP Header Security Inspector: CORS, CSP, HSTS & Cookie Flags
Analyze, inspect, and audit HTTP response headers to identify missing security policies, evaluate CORS settings, and strengthen web server defense.
Essential HTTP Security Headers Checklist
Modern web security relies on browser-enforced security headers returned by your web server:
- Content-Security-Policy (CSP): Restricts trusted domains for scripts, styles, and frames, neutralizing Cross-Site Scripting (XSS) and data injection attacks.
- Strict-Transport-Security (HSTS): Forces browsers to interact strictly over secure HTTPS connections, preventing SSL-stripping attacks.
- X-Frame-Options: Prevents clickjacking by forbidding unauthorized third-party domains from embedding your site in an iframe (
DENYorSAMEORIGIN). - X-Content-Type-Options: Setting
nosniffprevents browsers from MIME-sniffing files away from the declared Content-Type.
CORS & Cookie Security Attributes
Inspect cross-origin sharing and session token flags:
- Access-Control-Allow-Origin: Evaluates CORS policies; avoid wildcards (
*) on endpoints returning sensitive authenticated credentials. - Secure & HttpOnly Flags: Ensures session cookies cannot be accessed via client-side JavaScript (HttpOnly) and are transmitted solely over encrypted HTTPS (Secure).
- SameSite: Setting
StrictorLaxprotects against Cross-Site Request Forgery (CSRF).
Pro Tip: Practical Application
Verify your HSTS header includes includeSubDomains; preload before submitting your domain to the official Chrome HSTS preload list.