Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var url = "http://dev/api/v1/macc/*";
- var xhttp = new XMLHttpRequest();
- xhttp.onreadystatechange = function () {
- if (this.readyState == 4 && this.status == 200) {
- console.log(xhttp.responseText);
- }
- };
- xhttp.open("GET", url, true);
- // xhttp.setRequestHeader('Content-Type', 'application/json');
- xhttp.setRequestHeader('X-CSRF-Token', 'xxxxxxxxxxxxxxxxx');
- // xhttp.setRequestHeader('cookie', cookie);
- xhttp.send();
Add Comment
Please, Sign In to add comment