Security Headers: Understand and Use the Results
Inspect delivered HTTP security policies and evidence coverage
HTTP security headers: the seatbelts your site already has built in
HTTP security headers are short instructions a web server sends along with every page that tell the browser how to defend the visitor against entire categories of attack. They are invisible to the user, free to deploy, and in many cases turn on protections that have been part of every modern browser for over a decade — they just have to be opted into. Think of them as the seatbelts your car already has installed: they only protect anyone if you actually click them in. Most websites today still ship with one or two of the seven major security headers in place; the rest are simply missing.
You should care because **the missing security headers on a typical website map directly to a list of attacks that the browser is willing to block, but isn't being asked to**. Cross-site scripting attacks, clickjacking, content sniffing, mixed-content downgrades, referrer leakage to third parties, FLoC tracking opt-outs — for almost every well-known browser-side attack, there is a header that disables the attack with a single line of configuration. The cost of adding the headers is one engineering ticket. The cost of not adding them is a steady trickle of preventable security incidents.
The seven HTTP security headers every audit looks at:
Content-Security-Policy (CSP) — the most powerful. Specifies which sources of scripts, styles, images, and frames the browser is allowed to load. Properly configured CSP makes most cross-site scripting attacks impossible.
Strict-Transport-Security (HSTS) — tells the browser to only ever connect to this domain over HTTPS, even if the user types `http://`. Closes the protocol-downgrade attack window.
X-Frame-Options — tells the browser whether the page can be embedded in an iframe. Prevents clickjacking.
X-Content-Type-Options: nosniff — tells the browser to honor the declared MIME type of every resource and not to second-guess it. Closes a class of MIME-confusion attacks.
Referrer-Policy — controls how much of the previous URL is sent in the `Referer` header when users click links to other sites. Privacy-relevant.
Permissions-Policy (formerly Feature-Policy) — controls which browser features (camera, microphone, geolocation, etc.) the page is allowed to use.
Cross-Origin-Opener-Policy / Embedder-Policy / Resource-Policy — newer headers that protect against side-channel attacks like Spectre.
Three questions a security-headers audit answers:
Which of the free, browser-built-in defenses am I currently leaving turned off?
Are any of the headers I do have configured incorrectly, in a way that makes them ineffective?
After my recent CMS or framework update, did any of the headers quietly disappear?
The cost of missing security headers is leaving the browser's built-in defensive features unused. The fix is one configuration change at the web server, CDN, or framework level — and modern hosting platforms (Vercel, Cloudflare Pages, Netlify) make it a few lines of config. The most authoritative reference is Mozilla's HTTP security headers documentation on MDN.
The Security Headers endpoint, in plain language
Inspect delivered HTTP (HyperText Transfer Protocol) security policies and evidence coverage
HTTP (HyperText Transfer Protocol) security headers are your first line of defense against common web attacks including XSS, clickjacking, MIME-sniffing, and protocol downgrade attacks. OWASP, Mozilla Observatory, and compliance frameworks (PCI-DSS 4.0, SOC 2 (Service Organization Control 2), HIPAA) all recommend these headers. Regular auditing identifies missing headers and conflicting directives so teams can review and remediate their configuration.
What is actually happening when you call it
Fetches the URL (web address) with bounded destination-validated redirects and evaluates effective HSTS (HTTP Strict Transport Security), CSP (Content Security Policy), framing, referrer and contextual isolation policies using the same parser as composite reports. First CSP directives and independently enforced policies retain browser semantics. Cookie-setting attempts, reporting declarations and optional error-page observations are separate diagnostics; they do not establish runtime storage, report delivery, exploit resistance or legal compliance.
Why this specific tool matters
Choose a task: Application Security Audit. Before deployment, verify that all required security headers are properly configured across web applications. Compare results against OWASP Secure Headers Project recommendations.
Run the Security Headers request below and retain the input and observed result. Before changing configuration, compare the relevant fields with the value or policy you expected. Use the Security Headers reference to check the field definitions and supported options.
Available on the free plan. The technical details: `GET /v1/security/headers`.
When would I actually use this?
Application Security Audit
Before deployment, verify that all required security headers are properly configured across web applications. Compare results against OWASP Secure Headers Project recommendations.
Use the finding: Catch security header misconfigurations before they reach production.
Compliance Verification
Document security header configuration as evidence for PCI-DSS 4.0 Requirement 6.4, SOC 2 (Service Organization Control 2) CC6.1, or HIPAA Technical Safeguards audits.
Use the finding: Automate compliance evidence collection for security controls.
Vendor Security Assessment
Evaluate the security posture of third-party vendors and SaaS providers by analyzing their web application security headers as part of vendor risk management.
Use the finding: Assess vendor security without requiring access to their infrastructure.
CI/CD Security Gate
Integrate security header checks into automated deployment workflows to automatically validate headers after each deployment.
Use the finding: Prevent security regressions with automated header validation.
The easiest way: just ask your AI assistant
Connect the MCP server. Just ask in plain English:
Use security_headers with url=https://example.com. Show the returned findings, identify unavailable evidence, and explain a useful next check.
Confirm the tool and inputs in the client before accepting its summary. For Security Headers, use the response fields below to separate observations from recommendations.
The dedicated MCP server is available on every plan. Individual tool access and request limits depend on your plan. Management categories and endpoints disabled for the tool catalog are not exposed through MCP.
The technical way: call it from code
This Security Headers request uses the example inputs from its API contract. Replace YOUR_API_KEY with a key on the free plan or higher; adapt the target to your task.
curl --request GET 'https://api.edgedns.dev/v1/security/headers?url=https%3A%2F%2Fexample.com' \
--header "Authorization: Bearer YOUR_API_KEY"Prepare inputs for Security Headers
Start with the inputs below. Keep the same hostname, path, and options when comparing Security Headers observations. The API reference contains the complete parameter contract, optional settings, and access requirements.
| Field | Type | Required? | What it means | Example |
|---|---|---|---|---|
url | string | Yes | The full URL (web address) to analyze (must include HTTPS://) | https://example.com |
Interpret Security Headers findings
Read these fields alongside the full response from your Security Headers check. A missing value or failed lookup is different from a passing result. Keep returned errors and confidence or cache metadata when available; do not replace missing evidence with a successful default. See the complete response reference for additional fields.
| Field | Type | What you'll see in it |
|---|---|---|
url | string | The original requested URL (web address) |
final_url | string | The final URL (web address) after redirects |
status_code | number | HTTP (HyperText Transfer Protocol) response status code |
Words you might be wondering about
URL (web address) — The full address of a page, like https://example.com/about.
HTTP (HyperText Transfer Protocol) — The language web browsers and websites use to talk to each other.
CSP (Content Security Policy) — A list, sent in a page header, of where the page is allowed to load images, scripts, and other resources from. Stops a lot of common attacks.
HSTS (HTTP Strict Transport Security) — A header that tells browsers "always use HTTPS for this site, never plain HTTP, even if the user types it." Prevents downgrade attacks.
SOC 2 (Service Organization Control 2) — A widely used security audit. Proves to customers that you handle their data responsibly.
Related Free Tools
Need Programmatic Access?
Automate domain intelligence with 100+ API endpoints and a free MCP server for AI integration.