mirror of https://github.com/vee1e/mitmproxy - An interactive TLS-capable intercepting HTTP proxy for penet
Find a file
Maximilian Hils 2607487981
Move mitmweb to Vite (#7971)
* Partially Revert "Web: harden `xsrf_token` usage (#7491)"

This reverts commit b761cb46c4.

The reason for this revert is that it's incompatible with Vite's
server (https://github.com/mitmproxy/mitmproxy/issues/7969).

We keep the parts that are compatible, and add an additional
`Sec-Fetch-Site` check for for all requests.

* use type imports for Vite compatibility

* make flow columns work with function name minification

* make modals work with function name minification

* vite: move assets

* web: switch builds to vite

* move to vite

* vite: move css and js

* update CHANGELOG

* [autofix.ci] apply automated fixes

* fix test failures

* fix static viewer

* obtain xsrf cookie lazily

* split js/css bundles into app/vendor

* [autofix.ci] apply automated fixes

* update compiled assets

* fix nits

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-13 18:05:51 +00:00
.github CI: update macOS version (#7957) 2025-11-02 23:51:46 +00:00
docs Remove macOS from supported TUN platforms (#7863) 2025-09-08 15:58:21 +02:00
examples Add example addon for DNS flows (#7973) 2025-11-11 16:02:35 +00:00
mitmproxy Move mitmweb to Vite (#7971) 2025-11-13 18:05:51 +00:00
release Move mitmweb to Vite (#7971) 2025-11-13 18:05:51 +00:00
test Move mitmweb to Vite (#7971) 2025-11-13 18:05:51 +00:00
web Move mitmweb to Vite (#7971) 2025-11-13 18:05:51 +00:00
.gitattributes
.gitignore switch to uv (#7662) 2025-04-16 18:38:35 +02:00
.python-version Update to Python 3.14 (#7918) 2025-10-15 21:32:53 +02:00
AGENTS.md Add AGENTS.md (#7907) 2025-10-09 20:20:57 +02:00
CHANGELOG.md Move mitmweb to Vite (#7971) 2025-11-13 18:05:51 +00:00
codecov.yml
CONTRIBUTING.md switch to uv (#7662) 2025-04-16 18:38:35 +02:00
LICENSE
MANIFEST.in
pyproject.toml Bump tox from 4.31.0 to 4.32.0 (#7949) 2025-11-03 00:50:12 +01:00
README.md fix badge link 2025-04-21 18:47:53 +02:00
SECURITY.md
uv.lock Update lockfile (#7962) 2025-11-05 22:34:32 +00:00

mitmproxy

Continuous Integration Status Codacy Badge autofix.ci: enabled Coverage Status Latest Version Supported Python versions

mitmproxy is an interactive, SSL/TLS-capable intercepting proxy with a console interface for HTTP/1, HTTP/2, and WebSockets.

mitmdump is the command-line version of mitmproxy. Think tcpdump for HTTP.

mitmweb is a web-based interface for mitmproxy.

Installation

The installation instructions are here. If you want to install from source, see CONTRIBUTING.md.

Documentation & Help

General information, tutorials, and precompiled binaries can be found on the mitmproxy website.

mitmproxy.org

The documentation for mitmproxy is available on our website:

mitmproxy documentation stable mitmproxy documentation dev

If you have questions on how to use mitmproxy, please use GitHub Discussions!

mitmproxy discussions

Contributing

As an open source project, mitmproxy welcomes contributions of all forms.

Dev Guide