title: Cors request Rejected
body: <p>I am facing an error and I don't known what to do. Whenever I try to save user to my ionic user service using the following code:</p>
  
  <pre class="lang-js prettyprint-override"><code>Ionic.io();
  var user = Ionic.User.current();
  if (user.id) {
    user.set('name', username);
    //user.set('image',image_name);
  }
  user.save();
  </code></pre>
  
  <p>and then I get this error:</p>
  
  <blockquote>
    <p>Ionic User: Error: CORS request rejected<br>
    XMLHttpRequest cannot load <a href="https://api.ionic.io/auth/users/null" rel="nofollow">https://api.ionic.io/auth/users/null</a>.<br>
    Response for preflight has invalid HTTP status code 404<br>
    OPTIONS https:// api .ionic .io /auth /users /null<br>
    [cors request rejected][1]<br>
    [coding][2]</p>
  </blockquote>