{ "$schema": "https://www.aptdot.com/data/v1/http-security-headers.schema.json", "metadata": { "name": "HTTP Security & Permissions Policy Headers Matrix", "version": "1.1.2", "generated_at": "2026-09-27T07:15:00.000Z", "license": "https://creativecommons.org/publicdomain/zero/1.0/", "total_headers": 9, "description": "Standardized baseline and hardened reference configurations for HTTP response headers across web applications, edge runtimes, and APIs." }, "headers": [ { "header": "Content-Security-Policy", "category": "Cross-Site Scripting & Injection Mitigation", "rfc_w3c_spec": "https://www.w3.org/TR/CSP3/", "baseline_default": "default-src 'self';", "recommended_production": "default-src 'self'; script-src 'self' 'strict-dynamic'; object-src 'none'; base-uri 'none'; frame-ancestors 'none';", "risk_level": "Critical", "app_targets": ["spa", "ssr", "monolith"], "deprecated_alternatives": ["X-XSS-Protection", "X-Frame-Options (superseded by frame-ancestors)"], "browser_compatibility": { "chrome": "25+", "firefox": "23+", "safari": "7+", "edge": "12+" }, "common_pitfalls": "Using 'strict-dynamic' requires supplying a per-request cryptographic nonce or hash to script tags; otherwise, legitimate inline scripts fail with 'Refused to load'. If enabling CSP violation reporting, avoid the deprecated 'report-uri' directive; instead use 'report-to ;' paired with the modern HTTP response header 'Reporting-Endpoints: =\"https://example.com/csp-reports\"'.", "snippets": { "nginx": "add_header Content-Security-Policy \"default-src 'self'; frame-ancestors 'none';\" always;", "apache": "Header always set Content-Security-Policy \"default-src 'self'; frame-ancestors 'none';\"", "next_js": "{ key: 'Content-Security-Policy', value: \"default-src 'self'; frame-ancestors 'none';\" }", "vercel": "{ \"source\": \"/(.*)\", \"headers\": [ { \"key\": \"Content-Security-Policy\", \"value\": \"default-src 'self'; frame-ancestors 'none';\" } ] }", "netlify": "/*\n Content-Security-Policy: default-src 'self'; frame-ancestors 'none';", "caddy": "header Content-Security-Policy \"default-src 'self'; frame-ancestors 'none';\"", "helmet": "helmet({ contentSecurityPolicy: { directives: { defaultSrc: [\"'self'\"], frameAncestors: [\"'none'\"] } } })" } }, { "header": "Strict-Transport-Security", "category": "Transport Layer & Protocol Security", "rfc_w3c_spec": "https://datatracker.ietf.org/doc/html/rfc6797", "baseline_default": "max-age=31536000", "recommended_production": "max-age=63072000; includeSubDomains; preload", "risk_level": "High", "app_targets": ["spa", "ssr", "api-only", "microservice"], "deprecated_alternatives": [], "browser_compatibility": { "chrome": "4+", "firefox": "4+", "safari": "7+", "edge": "12+" }, "common_pitfalls": "Submitting a domain to the HSTS preload list is effectively permanent; if any staging or internal subdomain lacks HTTPS, it will become inaccessible across major browsers.", "snippets": { "nginx": "add_header Strict-Transport-Security \"max-age=63072000; includeSubDomains; preload\" always;", "apache": "Header always set Strict-Transport-Security \"max-age=63072000; includeSubDomains; preload\"", "next_js": "{ key: 'Strict-Transport-Security', value: 'max-age=63072000; includeSubDomains; preload' }", "vercel": "{ \"source\": \"/(.*)\", \"headers\": [ { \"key\": \"Strict-Transport-Security\", \"value\": \"max-age=63072000; includeSubDomains; preload\" } ] }", "netlify": "/*\n Strict-Transport-Security: max-age=63072000; includeSubDomains; preload", "caddy": "header Strict-Transport-Security \"max-age=63072000; includeSubDomains; preload\"", "helmet": "helmet.hsts({ maxAge: 63072000, includeSubDomains: true, preload: true })" } }, { "header": "Permissions-Policy", "category": "Browser Hardware & Feature Isolation", "rfc_w3c_spec": "https://www.w3.org/TR/permissions-policy-1/", "baseline_default": "camera=(), microphone=(), geolocation=()", "recommended_production": "camera=(), microphone=(), geolocation=(), browsing-topics=(), payment=(), usb=()", "risk_level": "Medium", "app_targets": ["spa", "ssr", "monolith"], "deprecated_alternatives": ["Feature-Policy"], "browser_compatibility": { "chrome": "88+", "edge": "88+", "firefox": "not supported (header; supports iframe allow attribute only)", "safari": "not supported (header; supports iframe allow attribute only)" }, "common_pitfalls": "Permissions-Policy is enforced via response headers in Chromium browsers only; Firefox and Safari require the HTML 'allow' attribute directly on