the following code. I added the header information to the headers field of ajax. The data returned by the background still says that the invalid referer, is invalid referer
.function request() {
var url = "https://c.y.qq.com/qzone/fcg-bin/fcg_ucc_getcdinfo_byids_cp.fcg?type=1&json=1&utf8=1&onlysong=0&disstid=1471714611&format=jsonp&g_tk=5381&loginUin=0&hostUin=0&format=jsonp&inCharset=utf8&outCharset=utf-8¬ice=0&platform=yqq&needNewCode=0";
$.ajax({
url: url,
type: "get",
dataType: "jsonp",
jsonp: "jsonpCallback",
headers: {
"Referer": "https://c.y.qq.com/",
"Host": "c.y.qq.com"
},
success: function(data) {
console.log(data)
}
});
}
request(); //