@accelerated-software-development/caddy-api-client - v0.2.2
    Preparing search index...

    Function buildDnsRebindingBypassHandler

    • Build a header handler for DNS rebinding bypass

      Sets Host and Origin headers to bypass MITMproxy's DNS rebinding protection. Use this when proxying to MITMproxy from a different hostname.

      Parameters

      • options: { targetHost: string }

        Handler options

        • targetHost: string

          Target host:port (e.g., "127.0.0.1:8081")

      Returns CaddyRouteHandler

      Headers handler for request modification

      const handler = buildDnsRebindingBypassHandler({
      targetHost: "127.0.0.1:8081",
      });