📜  消息:“CSRF 令牌不匹配.” - 无论代码示例

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

代码示例3
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