下载和安装请参考 博友文章http://www.cnblogs.com/wangfeng520/p/5892125.html

尝试安装此扩展程序时出现以下警告:
Ignored insecure CSP value "https://ssl.google-analytics.com/ga.js" in directive 'script-src'.

查询一下可知,这是用于访问统计的,应该没什么大用。,可以考虑找到直接去掉引用。

自己尝试找到的解决办法:

找到解压后的根目录下的 manifest.json,打开找到sandbox节点
 "sandbox": {
      "pages": ["html/tester_sandbox.html", "snippet_sandbox.html"],
      "content_security_policy": "sandbox allow-scripts allow-popups; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://ssl.google-analytics.com/ga.js;"
    }
可以看到最后就是报错的那个js,直接删除链接接好了,改完之后如下所示
 "sandbox": {
      "pages": ["html/tester_sandbox.html", "snippet_sandbox.html"],
      "content_security_policy": "sandbox allow-scripts allow-popups; script-src 'self' 'unsafe-inline' 'unsafe-eval' "
    }

这时候在chrome里面刷新一下,可以看到已经不报错了。

这个还需要登录注册,最近在用的ApiDebug也挺不错的,国产的,开源免费,开源地址https://gitee.com/CrapApi/ApiDebug

posted on 2018-02-06 10:30  MakkaPakka007  阅读(4314)  评论(0编辑  收藏  举报