Angularjs and HTTP headers
<p>I would like to send my custom HTTP header to the REST service every time I make any request. I am using Apache HTTP Web Server. I have the following code:</p>
<pre><code>app.config(['$httpProvider', function($httpProvider){

if(!$httpProvider.defaults.headers.get){
    $httpProvider.defaults.headers.get = {};
}

$httpProvider.defaults.headers.get['My-Token'] = 'some_test_token';
}]);
</code></pre>
<p>But I see next in the devtools:</p>
<p><a href="https://i.stack.imgur.com/qQQTo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qQQTo.png" alt="enter image description here" /></a></p>
<p>My header inline into other. What am I doing wrong?</p>