ajax - How to get value from header authorization bearer? -


my server give response header authorization bearer.

how can value in angular?

with $http service can receive headers through success functions response object. can access property through

$http(....).success(function(result, status, headers, config){      var myauthheader = headers("myauthorizationheader");  ... headers....     } }) 

Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -