Can anyone help me troubleshoot an issue I'm having with a POST request using VueJS in Laravel? The request keeps failing with a 401 status code, even though I'm passing the token in the headers.
const post_data = {
headers: {
Authorization: [api token]
},
params: {
[parameters]
}
}
axios
.post('URL', post_data)
.then(res => console.log(res))