在使用ajax去请求其他网站的时候,为什么会发生重定向的问题 $.ajax({ url:"https://www.baidu.com", type:'GET', headers:{ 'Access-Control-Allow-Origin':'*' }, success:function(){ console.log(33); }, error:function(){ console.log(344); } }) 这种情况怎么处理呢??
添加回答
举报
0/150
提交
取消
