我有一個應用程序,我在服務器端函數中使用Meteor.http.call()。Meteor.http.call()從我的app.meteor.com
var ret = Meteor.http.call("GET", "https://www.quandl.com/api/v1/datasets/SF1/<...>");
這個工程使用本地主機流星服務器:我有我的數據傳回在ret
變量。
我將應用程序部署到ruleoneinvesting.meteor.com
,現在我使用同一個呼叫出現此錯誤:
XMLHttpRequest cannot load https://ddp--4645-ruleoneinvesting.meteor.com/sockjs/info?cb=p7czcbhqun. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://ruleoneinvesting.meteor.com' is therefore not allowed access. The response had HTTP status code 503.
This沒有幫助。