i have an cordova pp 
i am calling a post method in controller 
it works in browser , but in build and debug apk i get the error 

ionic.bundle.js:23826 POST <http://somedomain.com/api/account/validation> net::ERR\_CACHE\_MISS

my angular controller 

```
.controller('splashCtrl', function ($scope, $state,$http, userManager, serverConfig) {
    //check if the user exist else it will redirect to login 
    $scope.authenticate = function () {

        $http.post(serverConfig.serverUrl + '/api/account/validation').success(function (res,status) {

            if (status == '200') {

                //check if the user need to change password
                if (window.localStorage.getItem('shouldChangePassword') && window.localStorage.getItem('shouldChangePassword')=='true') {
                    $state.go('setPassword');
                    return;
                }

                $state.go('tab.category');
            }

        }).error(function (data, status) {
            console.log(status)
        })

    }

    $scope.authenticate();

})

```

any suggestion ?