Answer by excanoe for AJAX cross domain request
You can use Access-Control-Allow-Origin header to enable cross-domain requests.Read this: Cross-Origin Resource Sharing (CORS)
View ArticleAnswer by glortho for AJAX cross domain request
For subdomain calls you have two options:Use document.domain on both sides.Use jsonP, either via jQuery 1.5's crossDomain ajax specification, or directly.
View ArticleAnswer by Seth for AJAX cross domain request
Assuming you have jQuery 1.5+ you can use:$.ajax({ crossDomain:true, type: "POST", url: "http://domain.com/ajax.php", data: { var1: var1, var2: var2 }, success: function(data){ }});From the...
View ArticleAJAX cross domain request
I have my JavaScript files on my main domain and I want to do some calls from the subdomain.I have added:url: "http://domain.com/ajax.php"So the full code is: $.ajax({ type: "POST", url:...
View Article
More Pages to Explore .....