Strict-Transport-Security HTTP Origin: Network OSI layer 6 · Presentation Last updated 18 Nov 2026

Security scan: Strict-Transport-Security (HSTS) header missing

The site doesn't tell browsers to always use HTTPS, so a first visit over HTTP can be intercepted (SSL stripping).

Exact message you may see Strict-Transport-Security header missingHSTS header not setMissing HTTP Strict Transport Security headerHSTS Missing From HTTPS ServerStrict-Transport-Security not present
Seen on: HTTP Nginx Apache

Meaning

Send Strict-Transport-Security: max-age=31536000; includeSubDomains on HTTPS responses only, after the whole site and subdomains work over HTTPS. Start with a short max-age, add preload only when you're sure, since removing it later is slow.

Common causes

  • HSTS header never configured
  • Header sent only on HTTP, not HTTPS
  • Proxy/CDN stripping it
  • Subdomains not ready for includeSubDomains
  • Set only on some paths

⚡ Quick fix

  1. Add the header on all HTTPS responses
  2. Ramp max-age up gradually
  3. Verify: curl -sI https://example.com | grep -i strict

Detailed fix by platform

Nginx

  1. add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;

How to diagnose

  1. Header — Present on HTTPS?
  2. max-age — Long enough?
  3. Subdomains — HTTPS ready?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Network. Errors that are often confused with or caused by this one (click to open):

1005 — Cloudflare Error 1005: Access denied — The owner of this website has banned the autonomous system number (ASN) your IP address is in (Cloudflare)10051006 — Cloudflare Error 1006 / 1007 / 1008: Access denied — Your IP address has been banned (Cloudflare)10061009 — Cloudflare Error 1009: Access denied — The owner of this website has banned the country or region your IP address is in (Cloudflare)10091010 — Cloudflare Error 1010: The owner of this website has banned your access based on your browser's signature (Cloudflare)10101011 — Cloudflare Error 1011: Access denied (Hotlinking denied) (Cloudflare)10111012 — Cloudflare Error 1012: Access denied (Cloudflare)10121015 — Cloudflare Error 1015: You are being rate limited (Cloudflare)1015400 — 400 Bad Request: Request Header Or Cookie Too Large (HTTP)400Strict-Tr…

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.