나는 ajax를 통해 Google Alert
피드를 구문 분석하려고하지만 예외가 발생합니다.Google 알림 피드를 구문 분석
$(document).ready(function() {
$.ajax({
url: 'http://www.google.com/alerts/feeds/01662123773360489091/16526224428036307178',
type: 'GET',
dataType: "xml"
}).done(function(xml) {
$.each($("item", xml), function(i, e) {
$("#results").append($("enclosure").attr("url").text() + "<br />");
});
});
});
하지만 얻을 :
XMLHttpRequest cannot load http://www.google.com/alerts/feeds/01662123773360489091/16526224428036307178. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.
어떤 도움을 이것은 내가 뭘하려?
P.S : RSS를 구문 분석 아약스와 JQuery와 통해 피드,하지만 그들 중 누구도 나를 위해 일한 대해 이미 여러 게시물을 읽어 보시기 바랍니다.
도메인 간 문제와 유사합니다. [이 사이트] (http://cypressnorth.com/programming/cross-domain-ajax-request-with-xml-response-for-iefirefoxchrome-safari-jquery/) 접근법에 대한 몇 가지 메모가 있습니다. –