title: AngularJS http.post() returns 404
body: <p>Hi and merry christmas to you all.</p>
  
  <p>I am working with a Phonegap AngularJS App.  I am trying to make an http Post but I it returns an 404 error. I tried the POST using jquery 1.10.2 and it works. I have been days in this and it is the last part to finish coding the app. </p>
  
  <p>I have tried different versions of the request with no success.</p>
  
  <p>Here is the code</p>
  
  <pre><code>$scope.sendMail = function (user){ 
      console.log('sendmaul');
  
  
  $http.post('https://cloud/email.aspx',
     {
          user: user.email,
          pass: user.password,
          to:user.recipient,
          subject:'Test',
          message:'My Message'
      }
      )
  .success(function (data, status, headers, config){
          console.log('success');
  
  })
  .error(function (data,status,headers,config){
          console.log(data + status + config);
      });
  }
  </code></pre>
  
  <p>I have read in many places that I need to add on a angular.module the following code as .config</p>
  
  <pre><code>$httpProvider.defaults.useXDomain = true;
  delete $httpProvider.defaults.headers.common['X-Requested-With'];
  </code></pre>
  
  <p>I added that code on controller.js but I don't see difference on behavior in my app. I also have many http.get() request that work really well.</p>
  
  <p>--EDIT-- </p>
  
  <p><a href="https://cloud.email.aspx" rel="nofollow">https://cloud.email.aspx</a> is not a real site.</p>