FSN#37527 HSTS ook actief kunnen uitschakelen

svn path=/Website/trunk/; revision=30403
This commit is contained in:
Jos Groot Lipman
2016-08-24 11:28:32 +00:00
parent 423ed66979
commit 2260ddd980

View File

@@ -181,8 +181,8 @@ if (S("auto_https") && Request.ServerVariables("SERVER_PORT") != "443")
Response.End;
}
else
{
if (typeof NO_ADDHEADER == "undefined" && S("hsts_maxage") > 0)
{ // 0 wordt ook ondersteund om het actief uit te schakelen
if (typeof NO_ADDHEADER == "undefined" && S("hsts_maxage") >= 0)
Response.AddHeader("Strict-Transport-Security", "max-age=" + S("hsts_maxage")); // Geen includeSubDomains, dat nekt http://facilitor.nl
}