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.
Handler options
Target host:port (e.g., "127.0.0.1:8081")
Headers handler for request modification
const handler = buildDnsRebindingBypassHandler({ targetHost: "127.0.0.1:8081",}); Copy
const handler = buildDnsRebindingBypassHandler({ targetHost: "127.0.0.1:8081",});
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.