Skip to content

Instantly share code, notes, and snippets.

Created October 7, 2017 18:20
Show Gist options
  • Save anonymous/0ca53257bb3673815179db57fd91f0e6 to your computer and use it in GitHub Desktop.
Save anonymous/0ca53257bb3673815179db57fd91f0e6 to your computer and use it in GitHub Desktop.
<script>
// alert("test");
var req = new XMLHttpRequest();
req.open("POST", "/api/login");
req.send(JSON.stringify({"username":"test", "password":"password123"});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment