I would like to enforce HSTS for only 1 subdomain, but not the whole domain, is this possible ?
xxx.yyy.com -> HSTS on
zzz.yyy.com -> HSTS off
yyy.com -> HSTS off
I would like to enforce HSTS for only 1 subdomain, but not the whole domain, is this possible ?
xxx.yyy.com -> HSTS on
zzz.yyy.com -> HSTS off
yyy.com -> HSTS off
Yes.
Send the Strict-Transport-Security
header only for xxx.yyy.com
, and do not specify includeSubDomains
.
Browsers that properly handle HSTS will only set the requirement for the specified subdomain (xxx.yyy.com
) in this case.
Strict-Transport-Security
on xxx.yyy.com
did include the includeSubDomains
? Wouldn't that only affect *.xxx.yyy.com
?
Commented
Jun 12, 2015 at 3:58
xxx.yyy.com
" which is why I said not to set includeSubDomains
) - If you want the subdomains of xxx.yyy.com
to also enforce HSTS then you should set includeSubDomains
in the header.
includeSubDomains
is present for xxx.yyy.com
will it also affect *.yyy.com
? (i.e. will it break zzz.yyy.com
if it does not entertain HTTPS)?