Android WebView第三方网站注入在线JS地址

来源:互联网 发布:java erp系统 编辑:程序博客网 时间:2024/06/05 18:30

错误日志如下:
I/chromium﹕ [INFO:CONSOLE(0)] “[blocked] The page at ‘https://www.xxxx.com/’ was loaded over HTTPS, but ran insecure content from ‘http://xxxx.js‘: this content should also be loaded over HTTPS.
“, source: https://www.xxxx.com/ (0)
I/chromium﹕ [INFO:CONSOLE(904)] “Error logged with the Track&Report JS errors API(http://tiny/1covqr6l8/wamazindeClieUserJava): {“m”:”[CSM] Insecure content detected script : http://xxxx.js“, source: https://www.xxxx.com/ (904)

WebView一定概率出现崩溃,无法捕捉崩溃日志。
问题原因:https地址注入非https文件导致
解决方法:http://xxxx.js在线JS地址更改为//xxxx.js

0 0
原创粉丝点击