/** * Module exports. * * Logic borrowed from Modernizr: * * - https://github.com/Modernizr/Modernizr/blob/master/feature-detects/cors.js */try{module.exports=typeofXMLHttpRequest!=='undefined'&&'withCredentials'innewXMLHttpRequest();}catch(err){// if XMLHttp support is disabled in IE then it will throw// when trying to createmodule.exports=false;}