根据Chrome内容安全策略的变化,我已将所有脚本移动到单独的文件中,并在html页面(背景和弹出窗口)中引用它们以扩展我的Chrome扩展。但我仍然得到以下信息谷歌Chrome浏览器:拒绝执行内嵌脚本
Refused to execute inline script because it violates the following Content Security Policy
directive: "script-src 'self' chrome-extension-resource:".
这是我的背景页
<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="background.js"></script>
</head>
<!--<body onload = "Load();">-->
<body>
</body>
</html>
你看有没有内嵌的js但错误信息是,直到那里。我的代码有什么问题,我该如何解决它?
注:我使用清单第2版和Chrome 21.0.1180.89版本
感谢
没有在'background.js'中看到代码,这里没有太多要调试。 –
感谢罗布。问题解决了。 Plz看到我的答案 –