I'm trying to do a POST request with VueJS in Laravel, but the request failed with 401 status code, I'm passing the token into the headers but it doesn't work.
const post_data = {
headers: {
Authorization: [api token]
},
params: {
[parameters]
}
}
axios
.post('URL', post_data)
.then(res => console.log(res))