Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
jQuery plugin to make Cross Domain Requests with JavaScript without jsonp.
To receive some response for this calls, you have to add the Access-Control-Allow-Origin HTTP header.
Samples
-
Submitting a request
$.safeXDR('http://sampleurl', {param1:'value1'}); -
Enable cache
$.safeXDR('http://sampleurl', {param1:'value1', cache:true}); -
Receiving response (Needs Access-Control-Allow-Origin):
$.safeXDR('http://sampleurl', {param1:'value1'}, function(result){ console.log(result); });