Is there a way to set the $httpProvider headers outside of angular.module(\'myApp\', []).config()?
$httpProvider
angular.module(\'myApp\', []).config()
I\'m getting an Auth-Token from the serv
Adding to above responses of @Guria and @Panga
config.headers['X-Access-Token'] = $window.sessionStorage.token;
One can use x-access-token in header as JWT(jsonwebtoken). I store JWT in the session storage when a user authenticate first time.