Skip to content

Instantly share code, notes, and snippets.

@jgoslow
Last active August 13, 2022 17:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jgoslow/ab6b0af7f7c78f7d6f70bb05bcec89f9 to your computer and use it in GitHub Desktop.
Save jgoslow/ab6b0af7f7c78f7d6f70bb05bcec89f9 to your computer and use it in GitHub Desktop.
cors scripts
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