“http://some-urls/some-files.js"上的资源由于启用了跟踪保护而被阻止 [英] The resource at "http://some-urls/some-files.js" was blocked because tracking protection is enabled

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

问题描述

我在使用 Facebook 登录 Api 时在 javascript 控制台中遇到此错误.

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 + 插件也被屏蔽了,现在我的 Facebook Like 和其他社交网络插件在 Firefox 42.0 上无法运行

我使用的是 Firefox 42.0

I used Firefox 42.0

推荐答案

此功能调用 Firefox 跟踪保护.

跟踪保护允许 Firefox 用户避免多种形式的在线追踪.最初基于反跟踪启动的阻止列表断开连接,该功能提供更好的隐私,同时也加快通过阻止对跟踪域的请求来加载页面.

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.

如何关闭跟踪保护

  • 在 Firefox 位置栏中,输入 about:config 并按 Enter.

about:config这可能会使您的保修失效!"可能会出现警告页面.点击我会小心的,我保证!继续到 about:config 页面.

  • 搜索privacy.trackingprotection.enabled.

  • Search for privacy.trackingprotection.enabled.

双击privacy.trackingprotection.enabled 设置其值到 false.

这将关闭跟踪保护.如果您以后想重新打开它,请重复上述步骤将首选项切换回 false.

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

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