title: AngularJS $http.get() takes up to 10-20 seconds in Chrome, works fine in Firefox
body: <p>I'm encountering an odd error with AngularJS / Google Chrome. When I do an $http.get() it takes up to 18 seconds before it actually completes. It seems to keep at "PENDING" for the "OPTIONS" method:</p>
  
  <p><a href="https://i.imgur.com/yEozFdm.png" rel="noreferrer">http://i.imgur.com/yEozFdm.png</a></p>
  
  <p>The server that serves the pages is Mongoose, the one @ localhost:5000 is Flask, who returns the following headers in order for the CORS to work.</p>
  
  <pre><code>@mod.after_request
  def after_request(response):
      response.headers.add('Access-Control-Allow-Origin', 'http://localhost:8080')
      response.headers.add('Access-Control-Allow-Methods', 'GET, POST, OPTIONS')
      response.headers.add('Access-Control-Allow-Headers', 'Origin, X-Requested-With, Content-Type,     Accept')
  </code></pre>
  
  <p>Anyone knows why Chrome is delaying the OPTIONS request? (From the flask server debug console, it seems that the OPTIONS method really only arrives 10-20 seconds after the page has been reloaded). It seems to work fine in Firefox.</p>