源请求:
https://weibo.com/aj/v6/comment/small?ajwvr=6&act=list&mid=4247696808441951&uid=6567351113&isMain=true&dissDataFromFeed=%5Bobject%20Object%5D&ouid=2609660273&location=v6_content_home&group_source=group_all&rid=2_0_8_3080946866545731936_0_0&_t=0&__rnd=1528229322805
配置内容:
$.get('/aj/v6/comment/small', {
ajwvr:6,
act:'list',
mid:4247696808441951,
uid:6567351113,
isMain:true,
dissDataFromFeed:'%5Bobject%20Object%5D',
ouid:2609660273,
location:'v6_content_home',
group_source:'group_all',
rid:'2_0_8_3080946866545731936_0_0',
_t:0,
__rnd:1528229322805,
},function(data){
console.log(data)
})
proxy: {
'/aj':{
target: 'https://weibo.com',
changeOrigin: true
}
},
报错内容:Failed to load https://passport.weibo.com/visitor/visitor?entry=miniblog&a=enter&url=https%3A%2F%2Fweibo.com%2Faj%2Fv6%2Fcomment%2Fsmall%3Fajwvr%3D6%26act%3Dlist%26mid%3D4247696808441951%26uid%3D6567351113%26isMain%3Dtrue%26dissDataFromFeed%3D%25255Bobject%252520Object%25255D%26ouid%3D2609660273%26location%3Dv6_content_home%26group_source%3Dgroup_all%26rid%3D2_0_8_3080946866545731936_0_0%26_t%3D0%26__rnd%3D1528229322805&domain=.weibo.com&sudaref=http%3A%2F%2Flocalhost%3A9001%2F&ua=php-sso_sdk_client-0.6.28&_rand=1528230119.842: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:9001' is therefore not allowed access.