0👍
you need to send the token with axios request in the header so the backend knows its legit, you can only do that after you check your backend is working fine with postman, now you can set the axios header like this axios.defaults.baseURL = '/api';
axios.defaults.headers.common['Authorization'] = "Bearer " +
your_token_variable
- [Vuejs]-Vue interpolation does not work in the text obtained by API
- [Vuejs]-How to resolve 403 Forbidden error when uploading to S3
Source:stackexchange.com