Hello,
You can check here the sslstrip.py script:
- https://github.com/mitmproxy/mitmproxy/blob/0.17.x/examples/sslstrip.py
- https://github.com/mitmproxy/mitmproxy/blob/master/examples/sslstrip.py
For this script we have in the response function;
def response(flow):
flow.request.headers.pop(‘Strict-Transport-Security’, None)
flow.request.headers.pop(‘Public-Key-Pins’, None)
Why flow.request instead of flow.response for these response headers?
Thanks in advance,