Symptoms:
Customers may receive reports from a security scan that the vCenter Server Appliance Management Interface lacks the Strict Transport Security (HSTS) headers.
VMware vCenter Server Appliance 6.7.x
VMware vCenter Server Appliance 6.5.x
The lighttp daemon does not include these headers by default.
You can modify the /etc/applmgmt/appliance/lighttpd.conf file to include this header.
Replace the lines:
setenv.add-response-header = ( "X-UA-Compatible" => "IE=edge",
"X-Frame-Options" => "Deny" )
With the following:
setenv.add-response-header = ( "X-UA-Compatible" => "IE=edge",
"X-Frame-Options" => "Deny",
"Strict-Transport-Security" => "max-age=31536000; includeSubdomains" )
Restart the lighttp daemon:
systemctl restart vami-lighttp