Browser Refuses Localhost / Dev Subdomain Due to HSTS Cache

Parent domain sent `Strict-Transport-Security: includeSubDomains`, forcing HTTPS on dev subdomains.

Runs locally in browser Free · No login Independently Verified 2026-11-25 v4.1.0
Identifier: Browser Refuses Localhost / Dev Subdomain Due to HSTS Cache Platform: HTTP
Common Root Causes:
  • Parent domain sent `Strict-Transport-Security: includeSubDomains`, forcing HTTPS on dev subdomains.

Interactive Diagnostic Checklist

Verified Solutions:
  1. Use a separate dev domain or `.localhost` and clear HSTS entry during local testing.
Safe Diagnostic Command:
Check chrome://net-internals/#hsts
Warning: Verify configuration changes in staging or with dry-run flags (e.g. nginx -t) before reloading production services.

Technical Explanation

Parent domain sent `Strict-Transport-Security: includeSubDomains`, forcing HTTPS on dev subdomains. Recommended diagnostic: `Check chrome://net-internals/#hsts`. Remediation: Use a separate dev domain or `.localhost` and clear HSTS entry during local testing.

Worked Examples

  • Run `Check chrome://net-internals/#hsts` to verify root cause before applying the remediation.

Limitations & Assumptions

  • Always verify configuration changes in staging or with dry-run flags (e.g. `nginx -t`) before reloading production services.

Source References & Verification

Resource ID: err-http-hsts-localhost-locked · Independently verified: 2026-11-25

Related Resources