title: How do I allow Cross-Origin Requests from greasemonkey scripts in Firefox?
body: <p>I'm developing a Greasemonkey script that implements a couple of tools onto a webpage. This script makes a request for data from     </p>
  
  <pre><code>http://localhost/chess/heartbeat.php 
  </code></pre>
  
  <p>Now currently in Firefox I am getting this console error which totally stops my jQuery AJAX request for data.</p>
  
  <blockquote>
    <p>Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at            </p>
  </blockquote>
  
  <pre><code>http://localhost/chess/heartbeat.php.
  </code></pre>
  
  <blockquote>
    <p>This can be fixed by moving the resource to the same domain or enabling CORS.</p>
  </blockquote>
  
  <p>I am able to work around this using Google Chrome. When I have it as a simple browser extension for chrome, I'm able to have it do the same thing as Greasemonkey and I can add the following permissions to the manifest file for the plugin which allows me to make the same data request which Firefox blocked:</p>
  
  <pre><code>"permissions": [
      "&lt;all_urls&gt;"
    ]
  </code></pre>
  
  <p>Anyway, this works on chrome, but I want to achieve the same effect on Firefox. I've been researching this issue and I can't find a simple answer.</p>