Releases: canjs/can-ajax
Releases · canjs/can-ajax
Update the @parent
Updated docs in preparation for new sidebar
Implement ajaxSetup for reverse compatibility with $.ajaxSetup
Example usage
var ajax = require("can-ajax");
ajax.ajaxSetup({
lang: "de"
});
Will set the language to German for each request generated by can-ajax.
The xhrFields
option is also now available in calls to ajax.ajaxSetup()
and ajax()
:
ajax({
type: "GET",
url: "https://example.com/api/users",
xhrFields: {
withCredentials: true
}
});
Enables CORS for the cross-domain request.
v1.0.9
v1.0.8
Republishing 1.0.6
This is just republishing the previous release because a bug in npm
caused the test/
folder to be excluded from the npm package.