title: Angular GET request error, but only on safari iOS
body: <p>I'm building a website using WordPress as a backend, and AngularJS as the frontend. I'm using the WordPress JSON API to get my data to the front-end.</p>
  <p><a href="https://wordpress.org/plugins/json-api/" rel="nofollow noreferrer">https://wordpress.org/plugins/json-api/</a></p>
  <p><strong>The problem</strong></p>
  <p>I'm using AngularJS to get my data from the WordPress JSON API. I have created the following service:</p>
  <pre><code>this.getPage = function ( slug ) {
      return $http.get('wordpress/api/get_page/?slug=' + slug)
  }
  </code></pre>
  <p>I use this service in my controller to get the current page like this:</p>
  <pre><code>HTTPService.getPage('home')
      .success(function ( data ) {
          $scope.page = data.page;
          console.log(arguments);
      })
      .error( function () {
          console.log(arguments);
      })
  </code></pre>
  <p>This is working fine in all browsers, except for Safari on iOS. On Safari on iOS I get the following response when I log the error arguments:</p>
  <p><img src="https://i.stack.imgur.com/jjlzG.png" alt="Error response 0?" /></p>
  <p>This is the safari debugger which showed when I connected my iPhone to my Mac. The error response which I get is error code 0..</p>
  <p><strong>What I have tried so far</strong></p>
  <p>I have set <code>Access-Control-Allow-Origin &quot;*&quot;</code> in the <code>.htaccess</code> file, but this doesn't seem to work. The request is done on the same domain with a relative URL, so I don't think that this is the problem.</p>
  <p>So, does anyone know why this is not working on Safari (iOS)?</p>
  <p><strong>EDIT</strong></p>
  <p>Some extra information as requested:</p>