title: How to send header data in http request in Angular js
body: <p>While trying to access a secured Api, I need to send header data with in my angular http requests </p>
  
  <p>javascript code : </p>
  
  <pre><code>$http.post('http://localhost/api/validate', user).success(function () {
          $scope.reset();
          $scope.activePath = $location.path('/');
  </code></pre>
  
  <p>How to send header data with in this request?</p>