在配置X-CSRF字段并且我的所有代码都很简单之后,我正在尝试使用axios和最后一个Laravel版本5.5发出一些请求:
axios.post('/post-contact',{name:'Kamal Abounaim'})
.then((response)=>{
console.log(response)
}).catch((error)=>{
console.log(error.response.data)
})
Run Code Online (Sandbox Code Playgroud)
但我得到这个错误:419(未知状态)问题应该是什么感谢您的回答