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;

}

 

posted @ 2022-08-11 19:55  Leonardo-li  阅读(1840)  评论(0编辑  收藏  举报