标签:
$(document).ready(function() { var text = $.cookie("XSRF-TOKEN"); $.ajaxSetup({ headers: { ‘X-XSRF-TOKEN‘: $.cookie("XSRF-TOKEN"), } }); //Rest of your code here});
laravel5
原文地址:http://www.cnblogs.com/artcode007/p/5982435.html