ced2e8779f
* feat: Allow detection of MITM HTTPS proxies like ZScaler For security purposes, Figma heavily restrics the origins that are allowed to load within our Electron app. Unfortunately some corporate environments use MITM proxies like ZScaler, which intercepts our connection to `https://www.figma.com` and serves a redirect to e.g. `https://gateway.zscloud.net` before finally redirecting back to `https://www.figma.com`. In order to detect this situation and handle it gracefully, we need to be able to know whether or not the certificate for our own origin (`https://www.figma.com`) is chained to a known root. We do this by exposesing `CertVerifyResult::is_issued_by_known_root`. If the certification verification passed without the certificate being tied to a known root, we can safely assume that we are dealing with a MITM proxy that has its root CA installed locally on the machine. This means that HTTPS can't be trusted so we might as well make life easier for corporate users by loosening our origin restrictions without any manual steps. * Tweak docs wording |
||
---|---|---|
.. | ||
asar | ||
cert_verifier_client.cc | ||
cert_verifier_client.h | ||
electron_url_loader_factory.cc | ||
electron_url_loader_factory.h | ||
network_context_service.cc | ||
network_context_service.h | ||
network_context_service_factory.cc | ||
network_context_service_factory.h | ||
node_stream_loader.cc | ||
node_stream_loader.h | ||
proxying_url_loader_factory.cc | ||
proxying_url_loader_factory.h | ||
proxying_websocket.cc | ||
proxying_websocket.h | ||
resolve_proxy_helper.cc | ||
resolve_proxy_helper.h | ||
system_network_context_manager.cc | ||
system_network_context_manager.h | ||
url_pipe_loader.cc | ||
url_pipe_loader.h | ||
web_request_api_interface.h |