This version is old school.
Please find jQuery plugins on npm.
jQuery safe xdr
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.