Last active
August 13, 2022 17:46
-
-
Save jgoslow/ab6b0af7f7c78f7d6f70bb05bcec89f9 to your computer and use it in GitHub Desktop.
cors scripts
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
function corsTest(url) { | |
console.log("cors-test"); | |
var http = new XMLHttpRequest(); | |
http.open('GET', url, true); | |
http.onreadystatechange = function() {//Call a function when the state changes. | |
console.log(http.responseText) | |
} | |
http.send(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment