Set HeadersΒΆ

This feature lets you specify a set of headers to be added to requests or responses, based on a filter pattern. You can specify these either on the command-line, or through an interactive editor in mitmproxy.

Example: Set the Host header to “” for all requests.

mitmdump -R --setheader
command-line --setheader PATTERN
mitmproxy shortcut o then H