Decide whether to add includeSubDomains
Why it matters
Without includeSubDomains, subdomains are not forced onto HTTPS by the main domain's policy. Adding it is a choice because it also locks every subdomain, including old or internal ones, to HTTPS.
Risky change. A wrong setting here can take your site or your mail offline. Follow the stages in order, test each one, and keep a way back.
The fix
- List every subdomain in use. Check your DNS zone, your certificates (certificate transparency logs show names such as the ones at crt.sh) and your mail, staging, intranet and device names. Every one must work over HTTPS with a valid certificate, or it will become unreachable in browsers.
- Fix or remove subdomains that only work over plain HTTP before going further.
- Stage 1, add includeSubDomains while max-age is short (300). Test several subdomains in a browser and watch support requests.
- Stage 2, raise max-age in stages up to one year (31536000), as in the fix for the missing header.
- Rollback is only effective for visitors who return and are told max-age=0. Treat this change as hard to undo.
- Leave it off if you cannot guarantee HTTPS on every present and future subdomain.
http
Strict-Transport-Security: max-age=300; includeSubDomains Related
Scan your domain to see whether this applies to you.