title: Header is not setting in angularjs post request
body: <p>This is my controller and I am adding header in the request but header is not added in my request. </p>
  
  <pre><code>var app = angular.module("myApp", []);
  app.controller("myCtrl", function($scope, $http) {
    $scope.call = function() {
      $http({
        method: 'POST',
        url: 'http://localhost:8081/api/GetData',
        headers: {
          'token': '33c028f2-6eb6-11e8-ac8b',
          'user': 'admin',
          'Content-Type': 'application/json'
        }
      }).then(function(response) {
          //$scope.names = response.data;
          console.log(response.data);
        },
        function(response) {
          //  alert(response.data);
          //Second function handles error
          $scope.content = "Something went wrong";
        }
      );
    }
  });
  </code></pre>
  
  <p>When I check my browser console it does not showing any header in the request.</p>
  
  <blockquote>
    <p>Response headers (138 B)   Allow   POST,GET,OPTIONS,HEAD Content-Length<br>
    0 Date     Fri, 29 Jun 2018 10:10:58 GMT Server    Jetty(8.1.15.v20140411)  </p>
    
    <p>Request headers (438 B)    Accept<br>
    text/html,application/xhtml+xm…plication/xml;q=0.9,<em>/</em>;q=0.8<br>
    Accept-Encoding    gzip, deflate Accept-Language   en-US,en;q=0.5<br>
    Access-Control-Request-Headers     content,token,user<br>
    Access-Control-Request-Method  POST Connection     keep-alive Host<br>
    localhost:8081 Origin  null User-Agent     Mozilla/5.0 (X11; Ubuntu;<br>
    Linu…) Gecko/20100101 Firefox/60.0  </p>
  </blockquote>
  
  <p>Please help me for why header is not setting in my request</p>