{"id":1552,"date":"2015-10-22T12:54:14","date_gmt":"2015-10-22T10:54:14","guid":{"rendered":"http:\/\/blog.kodono.info\/wordpress\/?p=1552"},"modified":"2015-10-22T12:58:47","modified_gmt":"2015-10-22T10:58:47","slug":"force-cors-headers-in-firefox-to-allow-cross-domain-calls","status":"publish","type":"post","link":"https:\/\/blog.kodono.info\/wordpress\/2015\/10\/22\/force-cors-headers-in-firefox-to-allow-cross-domain-calls\/","title":{"rendered":"Force CORS headers in Firefox to allow cross domain calls"},"content":{"rendered":"<p><a href=\"http:\/\/www-jo.se\/f.pfleger\/forcecors\">This guy<\/a> created a Firefox extension to force the CORS (access-control) headers from a call. This is very useful when you want to do a JavaScript\/AJAX query over another website that doesn&#8217;t allow the cross domain calls.<\/p>\n<p>His code is on <a href=\"https:\/\/github.com\/jo5ef\/Force-CORS\">github<\/a>. I&#8217;ve the <a href=\"http:\/\/blog.kodono.info\/wordpress\/wp-content\/uploads\/2015\/10\/forcecors@ocact.us_.zip\">XPI compiled version on my blog<\/a> (into a ZIP file) found from <a href=\"http:\/\/www-jo.se\/f.pfleger\/forcecors-workaround\">jo.se\/f<\/a> website.<\/p>\n<p>You&#8217;ll need to add the <a href=\"https:\/\/addons.mozilla.org\/en-US\/firefox\/addon\/the-addon-bar\/\">addon bar (restored)<\/a> in order to use ForceCORS.<\/p>\n<p>Then you have to go to the <a href=\"about:config\">about:config<\/a> and search for <strong>forcecors.headers<\/strong> in order to set it up as you need. If it&#8217;s for an intranet with credentials required, then <a href=\"https:\/\/github.com\/jo5ef\/Force-CORS\/issues\/8\">check my tip on github<\/a>.<\/p>\n<p>Make sure you have restarted Firefox and click on the <code>cors<\/code> that appears into the bottom addon bar of Firefox. It should switch to <span style=\"color:red\">red<\/span>. You can now do cross domain calls!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This guy created a Firefox extension to force the CORS (access-control) headers from a call. This is very useful when you want to do a JavaScript\/AJAX query over another website that doesn&#8217;t allow the cross domain calls. His code is on github. I&#8217;ve the XPI compiled version on my blog (into a ZIP file) found [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","hide_page_title":"","footnotes":""},"categories":[7,15,16,13,33],"tags":[153,17,152,158],"class_list":["post-1552","post","type-post","status-publish","format-standard","hentry","category-application","category-astuce","category-navigateur","category-niveau-intermediaire","category-programmation","tag-astuce","tag-firefox","tag-niveau-intermediaire","tag-programmation"],"_links":{"self":[{"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/posts\/1552","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/comments?post=1552"}],"version-history":[{"count":5,"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/posts\/1552\/revisions"}],"predecessor-version":[{"id":1558,"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/posts\/1552\/revisions\/1558"}],"wp:attachment":[{"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/media?parent=1552"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/categories?post=1552"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/tags?post=1552"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}