This file contains 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
<script> | |
// Create the XHR object. | |
function createCORSRequest(method, url, authorizationToken) { | |
var xhr = new XMLHttpRequest(); | |
if ("withCredentials" in xhr) { | |
// XHR for Chrome/Firefox/Opera/Safari. | |
xhr.open(method, url, true); | |
xhr.setRequestHeader("Authorization", authorizationToken); | |
} else if (typeof XDomainRequest != "undefined") { |
This file contains 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
-8 | |
-13 | |
+17 | |
+7 | |
+12 | |
-18 | |
+19 | |
+14 | |
-19 | |
+16 |