[RSS Feed/News] Ajax Request(s)

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
JavaScript:

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

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom