收藏
回答

weixin.getLocation获取到经纬度后逆解析接口被拦截是为什么呢?

Access to XMLHttpRequest at 'https://apis.map.qq.com/ws/geocoder/v1/?coord_type=5&get_poi=0&output=json&key=key&location=36.65184%2C117.12009' from origin 'https://xxx.cn' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

为了安全key和域名隐藏了下,是对的

回答关注问题邀请回答
收藏

1 个回答

  • Mr.Zhao
    Mr.Zhao
    2021-09-14

    这不就是跨域吗 一般这个接口是在后端调的

    2021-09-14
    有用 1
    回复
登录 后发表内容