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.
我知道,我不能从本地主机的要求,但我不运行的本地主机 我该如何解决这个问题?