【发布时间】:2016-12-16 02:08:42
【问题描述】:
我添加了 Content-Security-Policy,它在 Chrome、Firefox 和 Opera 上运行良好,但在 Internet Explorer 11 上我有这个错误“无法显示此页面”
add_header Content-Security-Policy "connect-src 'self' wss://example.com/ws/;
script-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.google-analytics.com https://www.google.com https://www.gstatic.com/recaptcha/api2/recaptcha__en.js https://ajax.cloudflare.com/cdn-cgi/nexp/cloudflare.min.js;
frame-src 'self' https://www.terminal.com/embed/chart-widget/ https://www.google.com/recaptcha/;
img-src 'self' https://www.google-analytics.com https://chart.googleapis.com https://shape.com;
";
如果我评论这部分它与 IE 的合作
为什么我只有在 IE 上才会出现这个错误?谢谢你
【问题讨论】:
标签: php nginx content-security-policy