【问题标题】:Oembed Vine Android webview- ssl errorOembed Vine Android webview-ssl错误
【发布时间】:2016-03-01 01:37:05
【问题描述】:

我正在尝试使用webviewVine 嵌入到一个android 应用程序中,并调用vine ombed api 以使HTML 显示在webview 中。我目前收到以下错误

https://vine.co/v/MwrDbBbbwIK/embed/simple net::ERR_INSECURE_RESPONSE

我知道这是某种 ssl 证书错误。我可以让它在Safari 中正确显示,但不能在Chrome 或我的android webview 中显示。有没有办法解决这个错误?

【问题讨论】:

    标签: android ssl webview oembed vine


    【解决方案1】:

    试试这个

     mWebView.setWebViewClient(new WebViewClient()       
    {
        @Override
        public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) {
            handler.proceed(); // Ignore SSL certificate errors
        }
    });
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-07-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多