$http サービスを介してAppVeyor REST APIに GET 要求を行い、プロジェクトの最後のビルド ステータスを取得する角度付きアプリを作成していますが、CORS エラーが発生しています。
Fiddlerから試してみると、うまくいきます。
var buildStatus= 'https://ci.appveyor.com/api/projects/accountName/projectSlug';
var token = 'q3245dsfg'; // my account api token
$http.get(buildStatus, {
headers: {
'Authorization': 'Bearer ' + token
}
}).then(...
これは、Firefox で発生するエラーです。
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://ci.appveyor.com/api/projects/accountName/projectSlug. (Reason: CORS request failed).
何か案は?