Nginx 解决内容安全策略CSP(Content-Security-Policy)配置方式(漏洞修复)
add_header Content-Security-Policy "default-src 'self' localhost:8080 'unsafe-inline' 'unsafe-eval' blob: data: ;";
效果如下:
2、重启 nginx 服务
systemctl restart nginx
或者
service nginx restart