【发布时间】:2018-12-25 15:40:34
【问题描述】:
我有这个角码来获取数据
$http({
header: 'content-type:application/json',
method:'GET',
url: 'https://us-central1-****-*****.cloudfunctions.net/**/GetAll****',
}).then(function(messages){
$scope.member = messages.data.****
})
控制台中的错误是
Failed to load https://us-central1-site-*****.cloudfunctions.net/**/GetAll****: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://site-******.firebaseapp.com' is therefore not allowed access.
谁能帮帮我
【问题讨论】: