#1338·webview

Using a self-signed cert for localhost

Author: tanin47Created Nov 16, 2025Updated Nov 17, 2025

I have a use case where I'd like to use a self-signed cert for localhost. It seems WebView doesn't load localhost due to incorrect cert.

CEF (Chrome Embedded Framework) has a hook where we can ignore a cert given a certain URL. I wonder if webview has a similar mechanism.

If not, how would one implement it?

Thank you!