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

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -