0👍
Okay, I found the answer on my own … but in case anyone is making the same mistake as I’m doing: I forgot to set the header in the axios.post request, like that:
axios({
method: 'post',
url: '/send-sensitive-data',
data: somedata,
headers: {
Authorization: 'Bearer ' + getAccessToken()
}
})
.then(response => {
// do something with the response
})
- [Vuejs]-Http request 500 internal server error on Axios put
- [Vuejs]-How to use Vue JS transition "inside" another transition?
Source:stackexchange.com