0
我遇到了問題https://od-api.oxforddictionaries.com:443/api/v1/entries/en/ace/pronunciations API我在其他API上使用了此代碼。 我試圖使用POSTMAN及其工作。所以我認爲問題出在我的代碼上。對預檢請求的角度響應未通過訪問控制檢查
getWord(word) {
let headers = new Headers();
headers.append('Accept','application/json');
headers.append('app_id','xxxxxx');
headers.append('app_key','xxxxx');
return this._http.get('https://od-api.oxforddictionaries.com:443/api/v1/entries/en/ace/pronunciations',{headers:headers})
.map(res => res.json());
}
錯誤: