title: Using AngularJS $location and set a Header
body: <p>I am trying to create a reconnect to another site on my server.</p>
  
  <p>Currently using <code>$location.url('http://127.0.0.1/second');</code> to forward to the second site, but I need to set the <code>Authorization</code> Header to a custom variable.</p>
  
  <p>I searched through the <code>$http</code> and <code>$location</code> documentation on <a href="http://docs.angularjs.org" rel="nofollow">docs.angularjs.org</a>, but I wasn't able to find anything helpful.</p>