nginx漏扫响应头缺失


 

http {

(1)HTTP Strict-Transport-Security缺失
add_header Strict-Transport-Security “max-age=63072000; includeSubdomains; preload”;
(2)web漏洞-缺少X-Frame-Options标头
add_header X-Frame-Options SAMEORIGIN;
(3)HTTP Content-Security-Policy 响应头缺失
add_header Content-Security-Policy “default-src ‘self’; style-src * ‘unsafe-inline’; img-src * data:; object-src ‘self’; script-src * ‘unsafe-eval’ ‘unsafe-inline’; font-src * data:; worker-src * blob:;”;
(4)HTTP Referrer-Policy 响应头缺失
add_header Referrer-Policy “origin-when-crossorigin”;
add_header ‘Referrer-Policy’ ‘origin’;
add_header ‘Referrer-Policy’ ‘unsafe-url’;
(5)HTTP X-Permitted-Cross-Domain-Policies 响应头缺失
add_header X-Permitted-Cross-Domain-Policies value;
(6)HTTP X-XSS-Protection 响应头缺失
add_header X-XSS-Protection 1;
(7)HTTP X-Download-Options 响应头缺失
add_header X-Download-Options “noopen” always;
(8)HTTP X-Content-Type-Options 响应头缺失
add_header X-Content-Type-Options nosniff;

}

 

原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/279991.html

(0)
上一篇 2022年8月11日
下一篇 2022年8月11日

相关推荐

发表回复

登录后才能评论