The resource at “http://some-urls/some-files.js” w

2019-01-12 06:14发布

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

1条回答
姐就是有狂的资本
2楼-- · 2019-01-12 07:14

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.

enter image description here

查看更多
登录 后发表回答