var xhr=new XMLHttpRequest()
xhr.open("get","https://cvm.tencentcloudapi.com/?Limit=10&Offset=0",true)
xhr.setRequestHeader("Content-type","application/x-www-form-urlencoded");
xhr.setRequestHeader("Authorization","*");
xhr.setRequestHeader("Host","cvm.tencentcloudapi.com");
xhr.setRequestHeader("X-TC-Action","DescribeInstances");
xhr.setRequestHeader("X-TC-Version","2017-03-12");
xhr.setRequestHeader("X-TC-Timestamp","1605437266");
xhr.setRequestHeader("X-TC-Region","ap-guangzhou");
xhr.onreadystatechange=function(){
if(xhr.readyState===4&&xhr.status==200){
console.log(xhr.responseText);
}
}
xhr.send(null)
浏览器报错:
已拦截跨源请求:同源策略禁止读取位于 https://cvm.tencentcloudapi.com/?Limit=10&Offset=0 的远程资源。(原因:CORS 头缺少 'Access-Control-Allow-Origin')
所以你想举报什么?因为jpg和jpeg文件?这两个文件是1994年获得ISO10918-1标准而设定的,与腾讯云无关。