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

Popular posts from this blog

android - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -