美文网首页
2018-05-02cordova是WkWebview不能访问h

2018-05-02cordova是WkWebview不能访问h

作者: _coCo__ | 来源:发表于2019-06-29 09:32 被阅读0次

WkWebview启动的index.html不能访问http/https请求,需要结合cordova-plugin-wkwebview-file-xhr,此插件是oracle开发,拦截所有wkwebview请求,利用原生的方式请求http/https(默认只拦截https,如果需要拦截http,需要config.xml中配置 <preference name="InterceptRemoteRequests" value="all" />)。

相关文章

网友评论

      本文标题:2018-05-02cordova是WkWebview不能访问h

      本文链接:https://www.haomeiwen.com/subject/apecrftx.html