我在Stack Overflow上看到了很多這個問題,沒有解釋它的meaning
。有人可以解釋這個錯誤實際上的意思嗎?請求標頭字段訪問控制允許標題不允許進行身份驗證
Request header field Authentication is not allowed by Access-Control-Allow-Headers.
我在我的應用程序得到一個奇怪的錯誤。
如果您打開 http://verse-pack.herokuapp.com/#/pack並單擊搜索我收到上述錯誤。
但是,如果從搜索路徑(即http://verse-pack.herokuapp.com/#/search)刷新頁面,則不會發生錯誤。對於理解這個問題或者幫助我解決這個問題的任何幫助將不勝感激!謝謝。
我目前正在使用Node.js,Express.js和Angular.js堆棧。
這是導致錯誤的代碼(API密鑰已經被切換出)
$http.get("http://api.biblia.com/v1/bible/contents/LEB?key=abc123", {headers: {'Authentication': '*'}}).success(function(data) {
console.log("What");
$scope.tof = data;
});
謝謝庫爾特!爲什麼在從另一臺服務器傳遞JSON對象時會出現安全問題? –