首页 > 代码库 > laravel5

laravel5

$(document).ready(function() {
var text = $.cookie("XSRF-TOKEN");
$.ajaxSetup({
headers: {
‘X-XSRF-TOKEN‘: $.cookie("XSRF-TOKEN"),
}
});

//Rest of your code here
});

laravel5