In practice it's usually done with SSL termination (MITM but you have a trusted certificate)
Adguard Docs on it: https://kb.adguard.com/en/general/https-filtering#how-does-h...
Charles Proxy: https://www.charlesproxy.com/documentation/proxying/ssl-prox...
You can always choose to install your own root certificates, at which point your browsers will trust any certificates issued by them (which could be your own mitm proxy)
It would cause issues for websites / apps using HSTS / Certificate pinning (a.k.a. most big websites)
That’s news to me. Can you expand on this ? I always assumed if an API Endpoint for example is served on TLS it’s secure till the termination. No ?