IOS - Navigation through proxy not working

363 views
Skip to first unread message

Diego Olguin

unread,
Apr 4, 2024, 4:33:00 PM4/4/24
to Chromium-dev
Hi
I am trying to configure all navigation through my own proxy, I made a change in the net/proxy_resolution/proxy_config_service_ios.cc file to only use a PAC file, apparently the PAC file is recognized and the server is consulted (I have log records in the proxy), but the navigation does not go through the proxy.

void GetCurrentProxyConfig(const NetworkTrafficAnnotationTag traffic_annotation,
ProxyConfigWithAnnotation* config) {
...
...

proxy_config.set_pac_url(GURL("https://my-custom-domain.com/pac.js"));
// Source
proxy_config.set_from_system(true);
*config = ProxyConfigWithAnnotation(proxy_config, traffic_annotation);
}

Another some change is required so that the navigation goes through my proxy?

Thanks!
Diego

Nick Harper

unread,
Apr 4, 2024, 4:54:41 PM4/4/24
to diego....@salamancasolutions.com, Chromium-dev
Most network requests on iOS go through WebKit's network stack instead of the chromium network stack. You'll need to figure out how to configure that.

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/05a0f526-15c0-43de-bed5-4481fe8b31abn%40chromium.org.
Reply all
Reply to author
Forward
0 new messages