📅  最后修改于: 2022-03-11 15:02:29.955000             🧑  作者: Mango
Use this in the head section:
and get the csrf token in ajax:
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});