我申请了一个appkey,用ajax进行跨域请求。但是一直都是403 forbidden。我贴上我的代码
JQWeibo = { numWeibo: 15, appendTo: '#jsWeibo', appKey: "here is my key", uid: my uid, //The function to get weibo data loadWeibo: function () { $.ajax({ //weibo API url: "https://api.weibo.com/2/statuses/public_timeline.json", type: "GET", dataType: "jsonp", data: { source: JQWeibo.appKey, uid:JQWeibo.uid, count: JQWeibo.numWeibo, }, success: function (data, textStatus, xhr) { alert("Gain success");
谁能帮我看看啊,纠结了一天了
要先获得acess token,之后才会有访问权限。问题最后还是自己解决了