這個測試項目沒有做跨域處理 為什么第一個api能獲取到數(shù)據(jù) 而第二個api就會產(chǎn)生跨域呢 提示No 'Access-Control-Allow-Origin' header is present on the requested resource. 這是為什么?<template>
<div class="txt">
</div></template><script>export default { name: 'Test2',
mounted () { this.$http.get('http://api.komavideo.com/news/list').then(res => { console.log(res)
})
}
}</script><style scoped></style><template>
<div class="txt">
</div></template><script>export default { name: 'Test2',
mounted () { this.$http.get('http://api.douban.com/v2/movie/in_theaters').then(res => { console.log(res)
})
}
}</script><style scoped></style>
添加回答
舉報
0/150
提交
取消