webview加载失败,提示“不支持打开非业务域名http://about,请重新配置”
发布于 6 年前 作者 xiongguiying 10862 次浏览 来自 问答

业务当中有页面使用weview进行h5页面的加载;

小程序配置了对应的业务域名,用户正常情况下可以访问触屏链接;

页面当中weview组件添加了bindloadbinderror事件,记录了每次url的变化;

出现问题的日志如下:

[19:11:36]  触发了binderror事件 info: {“type”:“error”,“timeStamp”:5841,“target”:{“id”:"",“offsetLeft”:0,“offsetTop”:0,“dataset”:{}},“currentTarget”:{“id”:"",“offsetLeft”:0,“offsetTop”:0,“dataset”:{}},“mark”:{},“detail”:{“src”:“https://m.haodf.com/napi/minipage?redirect_uri=https%3A%2F%2Fm.haodf.com%2Fnconsult%2Fnetcase%2Forderdetail%3ForderId%3D6768416757%26env%3Dtouch&time=1628161894952”},“mut”:false,"_userTap":false}

[19:11:36]  触发了bindload事件 info: {“type”:“load”,“timeStamp”:5947,“target”:{“id”:"",“offsetLeft”:0,“offsetTop”:0,“dataset”:{}},“currentTarget”:{“id”:"",“offsetLeft”:0,“offsetTop”:0,“dataset”:{}},“mark”:{},“detail”:{“src”:“file:///android_asset/”},“mut”:false,"_userTap":false}

[19:11:37]  触发了bindload事件 info: {“type”:“load”,“timeStamp”:6601,“target”:{“id”:"",“offsetLeft”:0,“offsetTop”:0,“dataset”:{}},“currentTarget”:{“id”:"",“offsetLeft”:0,“offsetTop”:0,“dataset”:{}},“mark”:{},“detail”:{“src”:“https://mp.weixin.qq.com/mp/waerrpage?appid=wx08ed3dc45df80a37&domain=http%3A%2F%2Fabout&reason=1&type=jump2h5err&error_ret=2&uin=ODkzMTU2NDA2&key=946aa567270b561f28962f47b8f53e591b15b36a812c3d9a0025b57d4e487d57368bab59c4ae9b1612db4a0c65d2aa1016e9adafa31b87d2e85100b7f4b56f78922029580827440477753ef6364ee4c588840ec2ab24b291ac061059e6e6cf4f64ac8bc657d021756256bf2e310a690b87599b300074a1f20f2345957a838dc2&devicetype=android-29&version=28000753&lang=zh_CN&nettype=WIFI&ascene=49&pass_ticket=FgwgtSIXoV8rILsEvxRaxdgcKvFKG3wsf2wjkAQYwtre4EgjS95x745dj%2BZQnYPe&wx_header=1”},“mut”:false,"_userTap":false}

[19:11:37]  触发了binderror事件 info: {“type”:“error”,“target”:{“dataset”:{},“id”:"",“offsetTop”:0,“offsetLeft”:0},“currentTarget”:{“dataset”:{},“id”:"",“offsetTop”:0,“offsetLeft”:0},“timeStamp”:1147,“detail”:{“errMsg”:“web-view load failed due to not in domain list”,“url”:“http://about”}}

回到顶部