RisteDimitrievski
Active member
JavaScript:
XF.ajax(ajaxUrl,{
method:'POST',
data:{metamaskid:Moralis.User.current()['id']},
error:function(xhr){
console.log(xhr.statusText);
},
success:function(xhr){
console.log(xhr);
}
});
How can i submit ajax request to my controller. i've tried with $.ajax, but it gives me error 400 which may means by missing CSRF token. And i don't have any idea how can i get CSRF token from XF js functions?