test.html 351 B

123456789101112131415
  1. <script>
  2. let url = "https://muweb.us.to/turing/conversation/create";
  3. /*
  4. fetch(url, {credentials: 'include'})
  5. .then(r=>r.text()).then(data=>{alert(data);});
  6. */
  7. const xhr = new XMLHttpRequest();
  8. xhr.open("GET", url, true);
  9. xhr.withCredentials = true;
  10. xhr.onload = function(){
  11. alert(xhr.responseText);
  12. };
  13. xhr.send();
  14. </script>