I get TokenMismatchException when I make another ajax request from done of first one in jquery in laravel-5.0. I tried different Browsers but it yields to same output.
var setting = {
url : 'http://localhost/enduewitapi/login',
type : 'GET',
dataType : 'json',
data : data,
};
setting.done = function(data,textStatus,jqXHR){
var dataOne = {
dataOne : data
};
gen_ajax(sessionPath, 'POST', dataOne,
function(data, textStatus, jqXHR){
alert("Second ajax request successfull");
},
function(jqXHR, textStatus, errorThrown){
alert("second ajax request failed");
console.log(errorThrown);
},
function(jqXHR,textStatus){}
);
},
setting.fail = function(jqXHR,textStatus,errorThrown){
alert(jqXHR.status);
console.log(errorThrown);
},
setting.always = function(jqXHR,textStatus){}
Apiajax(setting);
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2H1jEpe
via IFTTT
Aucun commentaire:
Enregistrer un commentaire