AngularJS $http request hide Authorization header
<p>I my AngularJS function, I make $http GET request with a list of header.
And one of them is really secret one: Authorization. How can I hide it from the user?</p>

<pre><code>$scope.SearchCar = function () {
var config = {
    headers: {
        'Authorization': 'Basic code.to.hide',
        'Host': 'some.host.com'
    }
}
var url = 'https://some.host.com/car?q=' + $scope.carName;

$http.get(url, config)
    .then(function (response) {
        //success
    },
    function (response) {
        //failure
    }).finally(function () {
        //finally
    });
}
</code></pre>