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;
}
标签:src,HTTP,header,Options,nginx,add,Policy,漏扫,缺失 来源: https://www.cnblogs.com/Leonardo-li/p/16577672.html