"http://some-urls/some-files.js" 处的资源已被阻止,因为启用了跟踪保护

The resource at "http://some-urls/some-files.js" was blocked because tracking protection is enabled

我在使用 Facebook 登录 Api.

时在 javascript 控制台中收到此错误
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 点赞和其他社交网络插件在 Firefox 42.0 上无法使用

我用的是 Firefox 42.0

此功能调用 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 "This might void your warranty!" 警告页面。单击 我会小心,我保证!继续前往 about:config 页面。

  • 搜索 privacy.trackingprotection.enabled.

  • 双击privacy.trackingprotection.enabled设置其值 至 false.

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