0👍
Ok so apparently objects with a string property are ignored in Safari
, so the authorization element in the header was never passed, hence the 401
error.
Doesn’t work
let headers={
"Authorization":"abcdef...."
}
Works
let headers={
Authorization:"abcdef...."
}
Also be careful about trailing slashes in axios’s url.
- [Vuejs]-How to save category in laravel 5.7 with vue.js
- [Vuejs]-On emitting an object, all items of object getting pushed in all arrays
Source:stackexchange.com