angularjs - redirect using response from web api is not working -


i've read several posts here, issue, none of them have worked. js:

    var urlbase = '/api/login';   this.login = function (userid, pwd) {     return $http.post(urlbase,         {             params:                 {                     username: userid,                     password: pwd                 }         }   );  }; 

and web api controller:

var response = request.createresponse(httpstatuscode.redirect);         response.headers.location = new uri("http://www.google.com");         return response; 

i tried get. tracked process using google chrome developer tools (network tab), , saw response 'google.com', application wasn't redirected google.com. this saw


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -