<!DOCTYPE html>
<html lang="en">
<head>
  <title>Document</title>
</head>
<body>
  <button>click me</button>
  <script type="text/javascript">
    const x = new XMLHttpRequest()
    x.open('GET', '/cypress.json')
    x.onload = () => {
      location.href = 'index.html';
      console.log(location);
    }
    x.send()
  </script>
</body>
</html>
