Skip to content

Instantly share code, notes, and snippets.

@humorless
Last active September 24, 2020 07:14
Show Gist options
  • Save humorless/15616fd01365faa7d031cc2b3d2a4d8f to your computer and use it in GitHub Desktop.
Save humorless/15616fd01365faa7d031cc2b3d2a4d8f to your computer and use it in GitHub Desktop.
javascript remote debugging snippet
<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