title: Enabling CORS in an API gateway
body: <p>I am making a Cordova application. I need to make a simple GET request with Angular. </p>
  
  <p>I keep getting the message:
  "Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at <a href="http://myserver/AuthenticateMe" rel="nofollow">http://myserver/AuthenticateMe</a>. This can be fixed by moving the resource to the same domain or enabling CORS."</p>
  
  <p>I thought I added all the necessary headers to my response. Here is the full header:</p>
  
  <pre><code>"Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept
  
  Access-Control-Allow-Origin: *
  
  Content-Encoding: gzip
  
  Content-Length: 76
  
  Content-Type: application/json;charset=UTF-8
  
  Date: Mon, 16 Mar 2015 21:37:56 GMT
  
  Server: Apache-Coyote/1.1"
  </code></pre>
  
  <p>I tried this in Firefox and Chrome. </p>
  
  <p>This is extremely annoying because I never had a problem with my server when I was doing native iOS and Android requests. </p>
  
  <p>Am I missing anything here???</p>