📜  419 错误的原因 lravel - PHP 代码示例

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

代码示例1
There are two possible reasons

1. Not specifying or In correct csrf token in Ajax Requests: Note It is
important that your token is passed as X-CSRF-TOKEN. All in caps else Laravel
will keep throwing the 419 error.

2. Session expired error due to cache: Sometimes, the cache can also lead to
session expired error in front-end. This can be both the server cache and
browser cache. To fix, clear cache or increase its time