[Interest] WebEngine proxy whitelist

Allan Sandfeld Jensen kde at carewolf.com
Thu Mar 5 19:56:32 CET 2020


On Wednesday, 4 March 2020 16:33:17 CET Benjamin TERRIER wrote:
> Hi,
> 
> Is there any way to set a whitelist of URLs for proxy in Qt WebEngine?
> 
> In Qt application this is done by implementing
> QNetworkProxyFactory::queryProxy() and returning NoProxy based on the query
> URL.
> 
> However, even if Qt WebEngine does use the application proxy it does not
> call queryProxy() for each request. My understanding is that only some
> specific proxy parameters (host, port, etc.) are copied to the chromium
> network stack, making impossible to specify a different proxy for each
> request.
> 
> Is there any other way to specify a list of URLs that should not use proxy
> in Qt WebEngine?
> 
Could you write it as a pac-script?

I think there are some Chromium command-line arguments too that can change the 
defaults, but I think a pac-script is the most flexible and universal way.

'Allan




More information about the Interest mailing list