您好,请问我在使用天地图地名搜索api时,通过$.get()请求url时报错403,但是手动输入url到浏览器就能得到查询返回的结果,这是什么原因导致的呢?
function GetPoisByRegionCode(keyWord) { let url = `https://api.tianditu.gov.cn/v2/search?postStr={"keyWord":"${keyWord}","level":12,"mapBound":"116.02524,39.83833,116.65592,39.99185","queryType":1,"start":0,"count":10}&type=query&tk=2c5361672dbf38adfac15d456955c447`; $.get(url, function (data) { console.log(data); }); }