“http://some-urls/some-files.js”中的资源被阻止,因为跟踪保护已启用 [英] The resource at "http://some-urls/some-files.js" was blocked because tracking protection is enabled

查看:254
本文介绍了“http://some-urls/some-files.js”中的资源被阻止,因为跟踪保护已启用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用 Facebook Login Api 时,在 javascript 控制台中出现了这个错误。

 由于启用了跟踪保护功能,http://connect.facebook.net/en_US/sdk.js上的资源被阻止。 

$ b $ //加载SDK异步
(函数(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/sdk.js;
fjs.parentNode.insertBefore(js,fjs);
}(document,'script','facebook-jssdk') );

Google +插件也被屏蔽了,现在我的Facebook like和其他社交网络插件无法运行Firefox 42.0

我使用Firefox 42.0

解决方案

跟踪保护功能允许Firefox用户避免多种形式的在线$ b $,这种功能称为 Firefox跟踪保护功能。 $ b b跟踪。最初基于antitracking startup
Disconnect的阻止列表,该功能提供了更好的隐私,同时还通过阻止跟踪域的请求加速了
的页面加载。

如何关闭跟踪保护


  • 在Firefox位置栏中,输入about:config,然后按Enter键。



about:config这可能会使您的保修无效!警告页面可能会出现。点击我会小心,我保证!继续浏览about:config页面。


$ b

  • 搜索privacy.trackingprotection.enabled。

    双击 privacy.trackingprotection.enabled ,将它的值
    设置为 false 。




这会关闭Tracking Protection。如果您稍后想要将其重新启用,请重复上述步骤以将首选项切换回false。


I got this error in javascript console while using the Facebook Login Api.

The resource at "http://connect.facebook.net/en_US/sdk.js" was blocked because tracking protection is enabled.


 // Load the SDK asynchronously
            (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/sdk.js";
                fjs.parentNode.insertBefore(js, fjs);
            }(document, 'script', 'facebook-jssdk'));

Google + plugin also blocked,Now my Facebook like and other social network plugins not work on Firefox 42.0

I used Firefox 42.0

解决方案

This feature call Firefox Tracking Protection.

Tracking Protection allows Firefox users to avoid many forms of online tracking. Originally based on the blocklist from antitracking startup Disconnect, the feature offers better privacy while also speeding up page loads by blocking requests to tracking domains.

How to turn Off Tracking Protection

  • In the Firefox Location bar, type about:config and press Enter.

The about:config "This might void your warranty!" warning page may appear. Click I'll be careful, I promise! to continue to the about:config page.

  • Search for privacy.trackingprotection.enabled.

  • Double-click privacy.trackingprotection.enabled to set its value to false.

This will turn off Tracking Protection. If you later want to turn it back on, repeat the above steps to toggle the preference back to false.

这篇关于“http://some-urls/some-files.js”中的资源被阻止,因为跟踪保护已启用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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