2
我試圖做出雅虎的請求wheather FORCAST這樣產地http://XXXXX.com沒有被允許訪問控制允許來源
function parseXml(woeid)
{
$.ajax({
type: "GET",
url: "http://weather.yahooapis.com/forecastrss?w="+woeid,
dataType: "xml",
success: parse_wheather
});
}
,我得到了以下錯誤消息
XMLHttpRequest cannot load http://weather.yahooapis.com/forecastrss?w=1937103. Origin http://XXXXXXXX.com is not allowed by Access-Control-Allow-Origin.
我知道,我不能從本地主機的要求,但我不運行的本地主機 我該如何解決這個問題?