📅  最后修改于: 2022-03-11 14:55:54.887000             🧑  作者: Mango
SOLUTION: https://stackoverflow.com/questions/32738763/laravel-csrf-token-mismatch-for-ajax-post-request
The best way to solve this problem "X-CSRF-TOKEN" is to add the following code to your main layout, and continue making your ajax calls normally:
In header
In script