1
我被ajax
張貼形式如下Laravel-令牌missmatch例外AJAX請求
var jsonData = JSON.stringify($('#basic-info').serializeObject());
$.ajax({
url : '/users/save-basic-info/'+userId,
type : 'POST',
data : jsonData,
success : function (data) {
console.info(data);
},
error : function (jqXHR, textStatus, errorThrown) {
}
});
這是我在崗位參數
{"_token":"4WLag5Iqwg9fR61hNkNt4y9J3XffHlTfrNPYI0uS","name":"Test client","hospital_id":"3","end_date":"2016-12-01"}
爲_token
設置在該請求得到,我仍然看到Token Missmatch Exception