Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49190

Ionic Project- Using AngularJs Redirecting to URL Outside My Domain

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 49190

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>