问大家一个技术性的问题,加入 hsts 需要在页面的头部加一个代码Strict-Transport-Security: max-age=31536000; includeSubDomains
那么在纯静态的 html 里面,这段代码要怎么写入呢?
问大家一个技术性的问题,加入 hsts 需要在页面的头部加一个代码Strict-Transport-Security: max-age=31536000; includeSubDomains
那么在纯静态的 html 里面,这段代码要怎么写入呢?
|
DoraJDJFeb 8, 2017
1
HSTS 头直接在服务器配置里添加就好了吧
如果是静态页面托管服务,基本无解,我了解到的托管服务都没加 HSTS |
|
lhbcFeb 8, 2017
2
|
|
wqlFeb 8, 2017 via Android
3
根据 RFC 6797 章节 8.5 ,无解。
|
|
shinyFeb 8, 2017
4
一般的主机商都支持 .htaccess 或者 nginx 规则;自己的服务器更容易。
|
|
fourstringFeb 8, 2017
5
nginx:add_header
|