Using AngularJS $location and set a Header -
i trying create reconnect site on server.
currently using $location.url('http://127.0.0.1/second'); forward second site, need set authorization header custom variable.
i searched through $http , $location documentation on docs.angularjs.org, wasn't able find helpful.
actually can use $http;
$http({method: 'get', url: 'http://127.0.0.1/second', headers: { 'authorization': 'basic key'} }); for more info...
Comments
Post a Comment