Exit out of Firefox again<\/b><\/i>. The config file that Firefox actually uses to control the browser is called “prefs.js”, not “user.js”. user.js is the file that we, the end user, are supposed to make changes to, which are then copied over to prefs.js when Firefox is loaded. For whatever reason, the prefs.js file will not be updated with the contents of user.js until you exit Firefox, launch it, exit again (at which point prefs.js will be updated), then launch Firefox once more and your changes are ready for use.<\/li>\n<\/ul>\nAfter the above steps are completed, you should be able to make XMLHttpRequest calls cross-site \/ cross-domain with your AJAX code without Firefox\/Mozilla security getting in the way.<\/p>\n
The bevy of user_pref settings above creates a new site security policy that allows the listed XML HTTP Request commands to be performed from “http:\/\/localhost.com:3000” to any address. Normally, Firefox will only allow XMLHTTP Request calls within the same domain. For example if you were on microserf.com domain, Firefox would not allow the website http:\/\/www.microserf.com to make XMLHTTPRequest calls to http:\/\/www.hackmehard.com since this was a major exploit that crackers would use to hide their evildoings in the background of apparently benign sites.<\/p>\n
In general the security policy that Firefox has setup by default is a good idea. Setting up a new security policy as we have done above is generally safe as it only allows the site “http:\/\/localhost.com:3000” to make cross-site\/cross-domain XMLHTTPRequest calls of any sort listed. Any other domain would not be allowed to use this site policy.<\/p>\n
This post originally started out due to the desire to develop Salesforce.com AJAX Toolkit based s-controls outside of their Ajax Tools IDE (yeah, their naming schemes leave something to be desired), which runs on their Force.com “no software” platform.\u00a0 Of course I ran into huge problems with Camino \/ Firefox and cross domain XMLHTTPRequest scripting security issues.\u00a0 The result of which is this post on how to get around the cross site scripting issues and develop javascript based s-controls on your local machine, using your preferred IDE (go go Textmate).<\/p>\n","protected":false},"excerpt":{"rendered":"
Error: uncaught exception: Permission denied to call method XMLHttpRequest.open FireFox\/Mozilla browser fix \/ solution: Go to address “about:config” in Firefox (i.e. type that in the address bar and hit Enter) Search for “signed” in the filter bar Double click the item “signed.applets.codebase_principal_support” to change its value to “true” Create (or edit if already present) the […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,23],"tags":[83,84,85,86,22,87,88],"_links":{"self":[{"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/posts\/35"}],"collection":[{"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/comments?post=35"}],"version-history":[{"count":0,"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/posts\/35\/revisions"}],"wp:attachment":[{"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/media?parent=35"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/categories?post=35"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/tags?post=35"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}