本帖最后由 慕晚 于 2024-5-14 18:22 编辑
https://api.map.baidu.com/location/ip?ip=111.206.214.37&coor=bd09ll&ak=您的AK
我想直接调用这个API,目前根据百度所给的提示,我只需要传入我的ak即可获取返回值;但是我在活字格发起http请求时执行这个api,发生报错,报错显示跨域问题:
'https://api.map.baidu.com/location/ip?ak=**&coor=gcj02' from origin 'https://**' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
|
|