<!doctype html>
<html lang="en">
  <head>
    <title>Debug Proxy</title>

    <script type="module">
      globalThis["__DEBUG_PROXY__"] = true

      const searchParams = new URLSearchParams(window.location.search)
      const debugHost = searchParams.get("debug-host")

      const resetSessionStorage = () => {
        sessionStorage.removeItem("debug-host")
      }

      const resetParams = searchParams.get("reset")
      if (resetParams) {
        resetSessionStorage()
      }

      const debugHostInSe