angular.module('myApp')
.config(function($httpProvider) {
$httpProvider.defaults.headers.common['X-Requested-By'] = 'myApp';
});
angular.module('myApp')
.config(function($httpProvider) {
$httpProvider.defaults.headers.post['X-Posted-By'] = 'myApp';
});
angular.module('myApp')
.config(function($httpProvider) {
$httpProvider.defaults.headers.put['X-Posted-By'] = 'myApp';
});
$http.defaults.common['X-Auth'] = "foobar";
Security.StackExchange discussion
No comments:
Post a Comment