This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| newCorsXHR = function(type, url) { | |
| var xhr = false; | |
| try { | |
| xhr = new XMLHttpRequest(); | |
| } catch(e) {} | |
| if (xhr && "withCredentials" in xhr) { | |
| xhr.open(type, url, true); // Standard Cors request | |
| } else if (typeof XDomainRequest != "undefined") { | |
| xhr = new XDomainRequest(); // IE Cors request | |
| xhr.open(type, url); |
NewerOlder