0
Good night!
I have an API that was developed in Laravel, and when I am consuming it in NODE.JS with Axios and is returning the CSRF Mismatch Token error
So I believe I need to send the Token through the Node, but I’m not finding a way to do it.
Below my code that is consuming the API
axios.post('http://127.0.0.1:8000/api/v1/messages', {
message: 'oi, isso teste',
id:11
},{
username: 'admin',
password:'admin'
}).then((res) => {
console.log(`statusCode: ${res.statusCode}`)
console.log(res)
}).catch((error) => {
console.error(error)
})