内容安全策略:无法解析无效的源chrome扩展 [英] Content Security Policy: Couldn't parse invalid source chrome-extension

查看:152
本文介绍了内容安全策略:无法解析无效的源chrome扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从我的MacOS Firefox-Firebug-Console-js收到错误,并希望有人可能会提供一个有用的建议。我在Facebook Like按钮的其他网站上看到同样的错误,例如http://www.mcdonalds.com/us/en/home.html



这是我的Firebug-Console-js错误/警告:

内容安全策略:无法解析无效的源chrome-extension:// lifbcibllhkdhoafpjfnlhfpfgnpldfl



除了Firebug-Console-js错误/警告我的FB按钮似乎运行正常。到目前为止,我已经尝试更改jquery.min.js版本,更新我的FB开放图元属性,使我的FB站点退出开发阶段并公开。到目前为止,对我来说唯一有用的是评论我的FB sdk代码:

 <   div     id   =  fb-root >  <   / div  >  
< script type = text / javascript > function (d,s,id){
var js ,fjs = d.getElementsByTagName(s)[ 0 ];
if (d.getElementById(id)) return ; js = d.createElement(s); js.id = id;
js.src = // connect.facebook.net/en_US/all.js#xfbml=1& ; APPID = 'myappId';
fjs.parentNode.insertBefore(js,fjs);
}( document ' script'' facebook-jssdk')); < / script >





提前感谢您的帮助!

解决方案

我注意到Firefox中的以下不需要的浏览器扩展:Searchme,Slick Savings,Amazon Shopping Assistant和Ebay Shopping Assistant。事实证明,这些本质上是恶意软件在我的Mac上影响了Firefox,Safari和Chrome。它们是由一家名为Spigot,Inc。的合法公司制造的。



在寻找有效的病毒清除方法时,我发现这个链接

www.thesafemac.com/arg-spigot/ ,其中提供了详细说明。

I am getting an error from my MacOS Firefox-Firebug-Console-js and hoping someone might offer a helpful suggestion. I am seeing the same error on other sites with Facebook Like buttons e.g. http://www.mcdonalds.com/us/en/home.html

Here is my Firebug-Console-js error / warning:
"Content Security Policy: Couldn't parse invalid source chrome-extension://lifbcibllhkdhoafpjfnlhfpfgnpldfl"

Other than the Firebug-Console-js error / warning my FB button seems to be functioning correctly. So far I've tried changing jquery.min.js versions, updating my FB open graph meta properties, taking my FB site out of the development phase and making it public. The only thing that works for me so far is to comment out my FB sdk code:

<div id="fb-root"></div>
<script type="text/javascript">(function(d, s, id) {
    var js, fjs = d.getElementsByTagName(s)[0];
    if (d.getElementById(id)) return; js = d.createElement(s); js.id = id;
    js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId='myappId'";
    fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>



Thanks ahead of time for any help!

解决方案

I noticed the following unwanted browser extensions in Firefox: Searchme, Slick Savings, Amazon Shopping Assistant, and Ebay Shopping Assistant. Turns out these are essentially malware that effected Firefox, Safari, and Chrome on my Mac. They're made by a supposedly legitimate company called Spigot, Inc.

While searching for an effective means of virus removal I found this link
www.thesafemac.com/arg-spigot/ which gives detailed instructions how to do so.


这篇关于内容安全策略:无法解析无效的源chrome扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆