uni-app使用高德地图SDK(小程序版的)请求失败.使用本地IP打开会报警告:[Deprecation] getCurrentPosition() and watchPosition() no longer work on insecure origins. To use this feature, you should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details.
然后使用localhost的方式打开(http://localhost:8080/ )虽然不会有此警告,但是一直提示请求失败,不会走成功的回调。
请问如何解决