SCRIPT7002: XMLHttpRequest: Network Error 0x2efd, Could not complete the operation due to error 00002efd. index.html
<p>I am using Visual studio 2015 and ionic and i have been able to build for windows phone 8.1. I created a login page that is to query a php on a different server but i get a problem like this SCRIPT7002: XMLHttpRequest: Network Error 0x2efd, Could not complete the operation due to error 00002efd.
index.html
error. <br> My code trying to make a request is</p>

<pre><code>var login = function(name, pw) {
      return $q(function(resolve, reject) {
          $http.post('http://192.167.180.1//logn/sear.php',{ 'pin': pw }).then(
      function(result) {
        // No result here..
        var re=result.data.split(",");
        console.log(re[3]);
        if ((re[0] == 0 )) {
        // Make a request and receive your auth token from your server
        storeUserCredentials(re[2]);
        useCredentials(re[1]+" "+re[3]+" "+re[4]);
        console.log(LOCAL_TOKEN_KEY);
        resolve('Login success.');
      } else if(result.data == 1) {
        reject('Login Failed.');
      }


      }, function(err) {
       // $scope.response = err.records;
       console.log("error");

      });


    }); 

  };
</code></pre>