XenForo
Administrative
- Thread starter
- Admin
- #1
JavaScript:
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...
Read more
ادامه مطلب...
Code:
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...
Read more
ادامه مطلب...