0

$http service is not working on iPhone browsers, but its working fine on other devices browsers, after debugging what I have found is $http request is not reaching to server back-end.

Here is my login function using in controller:

function login() {
  $http.post(ENV.apiUrl+'/users/login', { email: $scope.username, password: $scope.password }).then(handleSuccess, handleError);
}
 function handleSuccess(res) {
  console.log(res);
}
function handleError(err) {
  console.log(err);
}
Govind Sah
  • 116
  • 10

0 Answers0