解决android 5.0 webview不能加载http与https混合内容的问题
2016-10-20 17:23
1121 查看
解决webview白屏问题
其中XXXX是域名,地址,不方便公开, 大概意思就是 A地址是通过Https方式加载的, 但是在提交数据的时候,却提交到了一个不安全的地址B,http格式的,所以,它要求B地址也通过https加载
解决方式,设置https和http两种模式混合加载,只要在设置webview的时候,加上下面这句话
The page at 'https://lab.chinapnr.com/muser/publicRequests' was loaded over HTTPS, but is submitting data to an insecure location at 'http://XXXX/A4/chinapnrhandle/deposit.html': this content should also be submitted over HTTPS. ", source: https://lab.chinapnr.com/muser/publicRequests (1)
其中XXXX是域名,地址,不方便公开, 大概意思就是 A地址是通过Https方式加载的, 但是在提交数据的时候,却提交到了一个不安全的地址B,http格式的,所以,它要求B地址也通过https加载
解决方式,设置https和http两种模式混合加载,只要在设置webview的时候,加上下面这句话
setting.setMixedContentMode(WebSettings.MIXED_CONTENT_ALWAYS_ALLOW);
相关文章推荐
- 解决android 5.0 webview不能加载http与https混合内容的问题
- 解决android 5.0 webview不能加载http与https混合内容的问题
- 【Android】WebView加载https页面不能正常显示资源问题
- android中webView加载H5,JS不能调用问题的解决
- 【Android】WebView加载https页面不能正常显示资源问题
- android h5 js 混合开发解决webview加载白屏,不加载网页的问题(硬件加速网页渲染,优化体验)
- 解决android 6.0 webview加载https出现空白页问题
- android 5.0之后原生webview同时用https和http加载HTML不加载图片解决方案
- android 5.0之后原生webview同时用https和http加载HTML不加载图片解决方案
- android中webview加载html,输入框不能输入内容问题记录
- Android使用webview加载网页,解决上传文件适配3.0、4.0、5.0手机存在的问题。
- Android WebView加载https页面不能正常显示资源问题
- Android textview 加载html语言(解决超链接不能使用的问题)
- android webView不能加载本地html文件问题
- 解决WebView加载Https无法显示的问题
- Android5.0 WebView中Http和Https混合问题
- Android 5.0中使用webView 加载网页不显示图片问题
- 小米等手机不能显示windowmanager的问题和webview加载https网址报错的问题
- Android webview通过http get下载文件下载两次的问题及解决方法
- android webview内容压线问题解决方法