507cbdc80a
* fix: do not cancel CORS preflight request on proxy auth. If connecting via proxy, preflight request can receive 407 header response from proxy. This does not mean request was finished even though it received headers (from proxy, not the destination server), so prevent "completing" and most importantly deleting it, which causes request to be canceled in network layer. Just continue to monitor it and await proper response from server. Also add circut breaker to cancel request if proxy auth failed 3 times (for example user keeps cancelling auth). This behavior happens only when app registered WebRequest api listeners. * Port chromium webrequest changes to electron code. Move relevant parts of chromium WebRequestProxyingURLLoaderFactory from https://chromium-review.googlesource.com/c/chromium/src/+/2011781 into electron ProxyingURLLoaderFactory. * Update code to upstreamed version and remove retyr count failsafe. Co-authored-by: Milan Burda <milan.burda@gmail.com> |
||
---|---|---|
.. | ||
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 |