您好,是在站点的---配置文件---
server
{
listen 80;
server_name yanshi.zhongyuanyouxuan.com;
index index.php index.html index.htm default.php default.htm default.html;
root /www/wwwroot/***********************;
add_header Content-Security-Policy "default-src 'self' yanshi.zhongyuanyouxuan.com 'unsafe-inline' 'unsafe-eval' blob: data: ;";
add_header X-Xss-Protection "1;mode=block";
add_header X-Content-Type-Options nosniff;
add_header X-Frame-Options SAMEORIGIN;
add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload";
add_header 'Referrer-Policy' 'origin';
add_header X-Download-Options noopen;
add_header X-Permitted-Cross-Domain-Policies none;
#SSL-START SSL相关配置,请勿删除或修改下一行带注释的404规则
。。。。。
这个里修改的。 请问这样可以吗? |