Personally I would just use the Firefox web developer tools rather than mitmproxy, much easier.
https://getfirebug.com/ http://chrispederick.com/work/web-developer/ https://addons.mozilla.org/en-US/firefox/addon/live-http-hea...
I haven't tried it but I expect the developer edition does too: