tauri-apps / wry

Cross-platform WebView library in Rust for Tauri.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there a way to open a self signed certification https site with wry::WebViewBuilder?

cyberpsyche opened this issue · comments

I'm a newbie in Rust and Wry. I searched the lib.rs source but cannot find a 'fn' looks like "with_accept_invalid_certi' or "with_accept_unsecure_certi' or such functions like that. Maybe it's not related to Wry itself.

I just use the simple example in the repository and try to build a desktop app to show a local network website which is self signed before. I can open many websites by using the simple example code, but if I change the url to "https://192.168.1.xxx" then I could only get a blank window with nothing information output to the shell terminal. In the mean while, I could visit the "https://192.168.1.xxx" website on my browser, both on Chrome and Safari. (Of course, the browser showed it's "not secure", but you can still visit it.)

Is there a proper way to handle this issue ? Thanks for your help so much!