Oembed Vine Android webview- ssl错误
问题描述:
我试图将Vine
嵌入到使用webview
的Android应用程序中,并调用vine oombed api来获取HTML以显示在webview
中。我目前收到以下错误Oembed Vine Android webview- ssl错误
https://vine.co/v/MwrDbBbbwIK/embed/simple net::ERR_INSECURE_RESPONSE
我知道这是某种形式的SSL证书错误的。我能够得到这个在Safari
正确显示,但不在Chrome
或我的android webview
。无论如何要解决这个错误?
答
试试这个
mWebView.setWebViewClient(new WebViewClient()
{
@Override
public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) {
handler.proceed(); // Ignore SSL certificate errors
}
});