I was wondering if it is possible to modify headers from within mitmproxy, using the following examples:
Changing all request headers for GET’s from ‘Accept: text/html’, to ‘Accept: application/json’ ?
Changing a cookie value permanently within the session - i.e. changing a cookie value like ‘UID: 1’ to ‘UID: 0’ for all requests ?
I understand this would be possible calling mitmproxy from a script, but am unsure how to do this within mitmproxy its self. Any help would be appreciated!