Skip to content

Scan rule · RSC-SEC-002

HSTS header missing

SecuritySeverity: MediumCWE-319

Checks whether Strict-Transport-Security is set so even the first request is protected.

Why this matters

HSTS instructs the browser to load your site over an encrypted connection only. Without this header the very first request often still goes over plain http — and that single moment can be intercepted and redirected on foreign networks.

In practice this is the difference between “we have a certificate” and “the connection is actually protected”. A certificate alone does not help if the browser never tries to use it.

The fix is a single header and takes minutes in any common hosting environment. Start with a short max-age, confirm everything stays reachable over https, then raise it.

Scan tier

External scan (anonymous)

How to fix it

Send `Strict-Transport-Security: max-age=31536000; includeSubDomains`.

Scan your own app for free