HarmonyOS 在webview嵌入h5服务,h5无法无法使用使用三方地图服务?

在webview嵌入h5服务,h5无法无法使用使用三方地图服务。提示报错内容如下:

A parser-blocking, cross site (i.e. different eTLD+1) script, xxx, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. 
阅读 521
1 个回答

报错信息非跨域错误,A parser-blocking, cross site (i.e. different eTLD+1) script……此信息为页面渲染完成后使用了document.write(),可以将模糊定位改成精确定位,atManager.requestPermissionsFromUser(context, [“ohos.permission.LOCATION”])更改后页面正常。

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进