Quantcast
Channel: AJAX cross domain request - Stack Overflow
Browsing latest articles
Browse All 4 View Live

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 Article



Answer 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 Article

Answer 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 Article

AJAX 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
Browsing latest articles
Browse All 4 View Live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>