📜  当我进行 Axios POST 时,我得到 419(未知状态)错误 0 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:46.135000             🧑  作者: Mango

代码示例1
//go to /app/Http/Middleware/VerifyCsrfToken.php (NOT RECOMMENDED for most cases like forms, etc)

//and add the URL you're using under $except = []

//like this:

protected $except = [
'/route-url-example'
];