Last active
September 24, 2020 07:14
-
-
Save humorless/15616fd01365faa7d031cc2b3d2a4d8f to your computer and use it in GitHub Desktop.
javascript remote debugging snippet
This file contains hidden or 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> | |
<script> | |
const mockURL = "http://10.20.30.40:3000" | |
const UID = "XXXX"; | |
const data = JSON.stringify({ | |
origin: window.location.href, | |
uid: UID | |
}); | |
fetch(mockURL, { | |
method: "POST", | |
body: data | |
}); | |
</script> | |
</head> | |
<body> | |
Hello world! <br/> | |
A quick command to run a simple server: nc -l 3000 | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment