title: Angular POST cross origin error while POSTMAN works
body: <p>I try to POST from my angular login service:</p>
  
  <pre><code>$http.post('https://xyz/login',
              {
                  headers: {
                      'Content-type': 'application/json',
                      'Accept': 'application/json',
                      'signature': 'asd'
                  }
  </code></pre>
  
  <p>And I get this error:</p>
  
  <pre><code>XMLHttpRequest cannot load https://xyz/login. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:1337' is therefore not allowed access.
  </code></pre>
  
  <p>I tried this headers:</p>
  
  <pre><code>$httpProvider.defaults.useXDomain = true;
  delete $httpProvider.defaults.headers.common['X-Requested-With'];
  </code></pre>
  
  <p>And also these:</p>
  
  <pre><code>"Access-Control-Allow-Origin": "*";
  "Access-Control-Allow-Headers": "X-Requested-With";
  "Access-Control-Allow-Methods": "GET, POST", "PUT", "DELETE";
  </code></pre>
  
  <p>The interesting thing, is that the POSTMAN works. 
  What shoud I have to do?</p>
  
  <p>Thanks.</p>