Staging Subdomain Unreachable After Enabling HSTS `includeSubDomains` on Apex

Browser forces HTTPS on `staging.example.com` even if it lacks a TLS certificate.

Runs locally in browser Free · No login Independently Verified 2026-11-25 v4.1.0
Identifier: Staging Subdomain Unreachable After Enabling HSTS `includeSubDomains` on Apex Platform: Security
Common Root Causes:
  • Browser forces HTTPS on `staging.example.com` even if it lacks a TLS certificate.

Interactive Diagnostic Checklist

Verified Solutions:
  1. Provision valid HTTPS on every subdomain (or wildcard cert) before adding `includeSubDomains`.
Safe Diagnostic Command:
curl -sI https://<apex> | grep -i strict-transport
Warning: Verify configuration changes in staging or with dry-run flags (e.g. nginx -t) before reloading production services.

Technical Explanation

Browser forces HTTPS on `staging.example.com` even if it lacks a TLS certificate. Recommended diagnostic: `curl -sI https://<apex> | grep -i strict-transport`. Remediation: Provision valid HTTPS on every subdomain (or wildcard cert) before adding `includeSubDomains`.

Worked Examples

  • Run `curl -sI https://<apex> | grep -i strict-transport` 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-sec-hsts-mixed-subdomain-lockout · Independently verified: 2026-11-25

Related Resources