#Force WebView to use a proxy to access external websites

6 messages · Page 1 of 1 (latest)

hot bane
#

Is it possible to do this? I see Wry supports this, so it should be possible:

https://github.com/tauri-apps/wry/blob/wry-v0.34.2/examples/proxy.rs

Considering Tauri is built on top of Wry, this should be easy, but I can't find anyway to do it.

My code

 let _popup_window = tauri::WindowBuilder::new(
        &handle,
        "login",
        tauri::WindowUrl::External(login_url.parse().unwrap()),
    )
    .user_agent(&user_agent)
    .on_navigation(move |url| {
      // ...
    })
    .build()
    .unwrap();
primal sluice
#

Imho it is not exposed in Tauri yet, so either consider making a PR (exposing the proxy in the window/webviewbuilder) or request this feature in an issue in the Tauri repository, so more people can request it.

high kernel
hot bane
#

Looks like someone just now made a PR

primal sluice
#

already looked at it and the implementaiton looks good to me, so could be coming soon ™️