title: Cross domain API call
body: <p>I am trying to make a cross-domain API call in JavaScript.</p>
  
  <p>I have tried angular's $http with JSONP but the API server does not support JSONP, only json.
  Using JSONP I get an "unexpected token" error.
  Fiddler shows the request was successful and gets the correct json object.
  Is there a way to bypass the error and obtain what fiddler gets?</p>
  
  <p>As an alternative I tried CORS with XMLHttpRequest as described <a href="http://www.eriwen.com/javascript/how-to-cors/" rel="nofollow">here</a>.
  The request fails with the usual "No 'Access-Control-Allow-Origin' header is present on the requested resource.".
  Fiddler, however, shows that the request was successful with return code 200.</p>
  
  <p>I don't understand this at all.
  Why does fiddler say the return code was 200 but the CORS call fails?</p>
  
  <p>Also, I can access the API url from within my browser (firefox and chrome) without issues. The API is public and requires no authorization.</p>