Closed coldestheart closed 4 years ago
I don't know why it's not working, but Authorization is a request header, not a response header. This usage is invalid as far as the HTTP spec is concerned.
Thx for an answer, sorry about this stupid question cause im newbie, i've just tried to use https://github.com/bosssauce/access/ and there was cfg.ResponseWriter.Header().Add("Authorization", "Bearer "+token)
, i thought that was right way to send token in header of response, sorry and thx again.
Hello, ive tried to migrate from axios (using nuxt), and start using '@nuxt/http' but when i was tryed to get header from the post response
console.log(data.headers.get('Authorization')) shows null, there is anyway to make it work?
in firefox network tab response header looks like: