title: CORS error with AngularJS post only in FireFox
body: <p>I am having issues only with FireFox when making a cross origin request in an Ionic app (so it's using AngularJS). The js app is doing a $http.post() to a Laravel 5.1 API, and I get the following error only in FireFox (39.0.3):</p>
  
  <blockquote>
    <p>Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at <a href="http://blah.dev/endpoint" rel="nofollow noreferrer">http://blah.dev/endpoint</a>. (Reason: missing token 'content-type' in CORS header 'Access-Control-Allow-Headers' from CORS preflight channel).</p>
  </blockquote>
  
  <p>This is on my localhost (OSX Mavericks). and works fine in Chrome and Safari, only FireFox is given the error. I have cleared the cache, and tried in a "private window", with the same results.</p>
  
  <p>Here is the Laravel route defined to handle the OPTIONS request:</p>
  
  <pre><code>Route::options('endpoint', function() {
      return response('OK')
          -&gt;header('Access-Control-Allow-Headers ', 'Origin, Authorization, X-Requested-With, Content-Type, Accept')
          -&gt;header('Access-Control-Allow-Methods', 'POST, GET, OPTIONS')
          -&gt;header('Access-Control-Allow-Origin', '*')
          -&gt;header('Cache-Control', 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0')
          ;
  });
  
  Route::post('endpoint', array('uses' =&gt; '\Path\To\Controller@endpoint'));
  </code></pre>
  
  <p>I did find <a href="https://stackoverflow.com/questions/24514666/why-is-this-cors-request-failing-only-in-firefox">this question</a> that seems to have a similar issue only in FireFox, but the solution was to comma separate the <code>Allow-Methods</code>, which I already am.</p>