android security_error ai_generated true

WebViewClient: SSL error in WebView

ID: android/webview-ssl-error

Also available as: JSON · Markdown
82%Fix Rate
86%Confidence
3Evidence
2023-01-01First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
14 active

Root Cause

WebView encountered SSL certificate error.

generic

Workarounds

  1. 85% success Show error to user and let them decide whether to proceed
  2. 88% success Pin expected certificate in network_security_config.xml

Dead Ends

Common approaches that don't work:

  1. Call handler.proceed() on all SSL errors 92% fail

    Security vulnerability

  2. Disable SSL in WebView settings 90% fail

    No encryption