我正在使用targetSdkVersion 26
构建一个Android项目,并从创建WebView的JAR文件调用活动。获得以下消息:
"Mixed Content: The page at 'https://xxxx' was loaded over a secure connection, but contains a form that targets an insecure endpoint 'mobile://xxxx.android'. This endpoint should be made available over a secure connection.", source: https://xxxx
从Android WebView not loading Mixed Content看来,解决方案是将WebView设置为WebSettings.MIXED_CONTENT_ALWAYS_ALLOW
。
由于我正在从第三方JAR文件中调用类,因此我无法访问WebView对象,在这种情况下,可能的解决方法是什么?