页面iframe不支持引用非业务域名,请重新配置?

小程序 文章 2022-03-01 18:00 3191 0 全屏看文

AI助手支持GPT4.0

页面iframe不支持引用非业务域名,请重新配置?The page iframe does not support referencing non-business domain names, please reconfigure?

页面iframe不支持引用非业务域名,请重新配置?
框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug web-view 微信iOS客户端 8.0.18 2.22.1

IOS手机打开webview页面,报“页面iframe不支持引用非业务域名,请重新配置?”

h5链接:https://jd-test-store-h5.birdback.org/data-center/data

域名已配

你倒是告诉我哪个域名不支持啊,我的h5中并没有用到iframe,安卓打开没问题



Framework type problem type API / component name terminal type wechat version basic library version applet bug web view wechat IOS client 8.0.18 2.22.1 IOS mobile phone opens the WebView page and reports "page iframe does not support referencing non business domain names, please reconfigure?" H5 link: https://jd-test-store-h5.birdback.org/data-center/data The domain name has been configured. Tell me which domain name is not supported. Iframe is not used in my H5. It's OK to open Android

回答:

社交恐怖分z:

你代码里的jsbridge里有个这个判断。怎么解决呢?判断当前环境是你们的客户端才调用这段代码

window.WVJBCallbacks = [callback]  let WVJBIframe = document.createElement('iframe')  WVJBIframe.style.display = 'none'  WVJBIframe.src = 'https://__bridge_loaded__'  document.documentElement.appendChild(WVJBIframe)  setTimeout(function() {      document.documentElement.removeChild(WVJBIframe)}, 0)
微喵网络:

检查最终页面里的iframe

Charlie:检查了,实在没发现使用iframe,上面提供了链接,你可以帮我看看吗
Charlie:

翻了很多帖子,都是用到了api.map.baidu.com或者v.qq.com,间接使用了iframe,可我没有啊

-EOF-

AI助手支持GPT4.0