{"id":788,"date":"2007-11-15T23:01:31","date_gmt":"2007-11-15T23:01:31","guid":{"rendered":"http:\/\/markandkelley.com\/mark\/?p=68"},"modified":"2012-01-30T02:37:08","modified_gmt":"2012-01-30T02:37:08","slug":"enabling-cross-domain-ajax-in-firefox","status":"publish","type":"post","link":"https:\/\/www.hickendesign.com\/site\/2007\/11\/enabling-cross-domain-ajax-in-firefox\/","title":{"rendered":"Enabling Cross-Domain AJAX in Firefox"},"content":{"rendered":"<div class=\"post-body\">So I just learned how to do this&#8230;  what a time saver this will be for AJAX development. <strong>Be warned that this allows cross-domain XHR&#8217;s to and from any site!  This is a major security risk.<\/strong> <\/p>\n<p>1. Close Firefox<\/p>\n<p>2. Edit the file prefs.js in your Firefox user profile folder<\/p>\n<p>3. Add the following line anywhere in the file<\/p>\n<p>user_pref(&#8220;capability.policy.default.XMLHttpRequest.open&#8221;, &#8220;allAccess&#8221;);<\/p>\n<p>4. Save the file and re-open Firefox. You can now risk your life and limb by doing XHR&#8217;s to whatever domains you want &#8211; congratulations!<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>So I just learned how to do this&#8230; what a time saver this will be for AJAX development. Be warned that this allows cross-domain XHR&#8217;s to and from any site! This is a major security risk. 1. Close Firefox 2. Edit the file prefs.js in your Firefox user profile folder 3. Add the following line &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.hickendesign.com\/site\/2007\/11\/enabling-cross-domain-ajax-in-firefox\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Enabling Cross-Domain AJAX in Firefox&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-788","post","type-post","status-publish","format-standard","hentry","category-general-posts"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hickendesign.com\/site\/wp-json\/wp\/v2\/posts\/788","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hickendesign.com\/site\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hickendesign.com\/site\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hickendesign.com\/site\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hickendesign.com\/site\/wp-json\/wp\/v2\/comments?post=788"}],"version-history":[{"count":1,"href":"https:\/\/www.hickendesign.com\/site\/wp-json\/wp\/v2\/posts\/788\/revisions"}],"predecessor-version":[{"id":914,"href":"https:\/\/www.hickendesign.com\/site\/wp-json\/wp\/v2\/posts\/788\/revisions\/914"}],"wp:attachment":[{"href":"https:\/\/www.hickendesign.com\/site\/wp-json\/wp\/v2\/media?parent=788"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hickendesign.com\/site\/wp-json\/wp\/v2\/categories?post=788"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hickendesign.com\/site\/wp-json\/wp\/v2\/tags?post=788"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}