Skip to main content

2026 年 4 月 20 日

HTTP Strict Transport Security

The HTTP Strict Transport Security (HSTS) feature is a security policy mechanism that helps to protect against man-in-the-middle attacks by telling web browsers that they should use only HTTPS to connect.

The header is added to all HTTP responses on port 443, specifying a lifetime of one year. Optional properties can be set by adding multi-value property hstsFlags to the locked.properties file. The following values can be set.

PropertyValue
includeSubDomainsApplies to all subdomains of this site.
preloadHint to include this site in HSTS preload lists.

Example:

hstsFlags.1=includeSubDomains
hstsFlags.2=preload

Note: These properties are not set by default because they can affect URLs outside of Horizon too. Do not set unless you understand the implications.

此页面对您有帮助吗?

对本主题提供反馈

本主题对您有帮助吗?

请勿填写任何个人信息或机密信息。

正在生成链接…