다음과 같은 문제가 있습니다. 내 웹 애플리케이션이AJAX 도메인 간 문제
http://webapp.mysite.com/browser/
에서 실행되고 그리고 난 내가 오류 메시지가 를 얻을 초 URL와의 standart 아약스 전화를 걸 경우
http://mysite.com/request?....
에 요청을 만들고 싶어, 도메인 (동일 출처) 정책 오류입니다.
[object Object]-error-[Exception...
"Component returned failure code: 0x80004005
(NS_ERROR_FAILURE) [nsIXMLHttpRequest.send]"
nsresult: "0x80004005 (NS_ERROR_FAILURE)"
location: "JS frame :: ..../scripts/jquery/js/jquery-1.4.4.min.js ::
anonymous :: line 16" data: no]
지금 나는 내 문제를 해결하기 위해 this ajax php proxy을 시도했다. 그러나 스크립트는 내용을 반환하지 않습니다.
var app = 'http://www.mysite.com/rest.php?request=credits';
var proxy = 'proxy.php?proxy_url=' + app;
$.ajax({
url: proxy,
cache: false,
async: false,
dataType: 'html'
success: function(html){
alert(html);
},
error: function(){
}
});
아이디어가 있으십니까?
http://api.jquery.com/jQuery.ajax/
"크로스 도메인 요청 및 dataType와 :"
서버 측은 어떻게됩니까? 서버 쪽이 호출 되었습니까? 서버에서 문제를 검색해야한다고 생각합니다. 스크립트가 호출 되었습니까? '$ h-> body'의 내용은 무엇입니까? – Tim