Advertisement
simonradev

test

Mar 25th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var xhttp = new XMLHttpRequest();
  2. xhttp.onreadystatechange = function(a) {
  3.     if (this.readyState == 4 && this.status == 200) {
  4.        console.log(a);
  5.     }
  6. };
  7. xhttp.open("OPTIONS", "filename", true);
  8. XMLHttpRequest.setRequestHeader("Access-Control-Request-Method", "PUT");
  9. xhttp.send(json);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement