@jujuali85 wrote:
In my Ionic project, I am trying to redirect to URL outside my domain and then read the response.
It is redirecting successfully, however the response is always the following:
data: null, status: 0, headers: //It only gives me only what I explicitly added in my GET.
I want to read the status and Location.. Does anyone know where is the problem?$http({ url: "the URL", method: "GET", headers: { "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", }}).then(function successCallback(response){ $scope.myWelcome= response; }, function errorCallback(response){ $scope.myWelcome = response; } )
Posts: 1
Participants: 1