Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>This page just redirects back to same-origin!</title>
</head>
<body>
<h1>Redirect me away!</h1>
<script>
window.addEventListener("message", async (e) => {
switch (e.data.dest) {
case "same":
break;
case "cross":
break;
}
});
</script>
</body>
</html>