how to make ajax works on subdomains

I am having a plugin on my wordpress site and this plugin is using ajax to send the information to database

the problem is that i am having subdomains on some pages on my website xxx.xyn.com

and the ajax is working fine on the main domain xyn.com but it’s not working on subdomains so how can i make it work on subdomains too ?

here is the code :

http_req = new XMLHttpRequest();
http_req.onreadystatechange = function() 
{eemail_submitresult(es_widget_form)};  // Passing the form to the submit request
http_req.open('POST', url, true);
http_req.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
http_req.send(parameters);

so how can i make it works ?

Read more here: how to make ajax works on subdomains

Leave a Reply

Your email address will not be published. Required fields are marked *