Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 951
Elshan Avatar asked Nov 12 '15 09:11

Elshan


1 Answers

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

like image 184
Elshan Avatar answered Oct 17 '22 07:10

Elshan