Unable to fetch data from local storage after setting it as Axios response.
The data can be accessed over a page refresh.
I used to set the token for request in the main.js as follows:
indent preformatted text by 4 spaces
Vue.prototype.$http.defaults.headers.common["Authorization"] = "Bearer " + token;
how to fix this problem?