每当我尝试使用sencha touch来获得json feed时,我总是会得到这个错误。Sencha touch get json error
XMLHttpRequest cannot load http://api.example.com/index.php/news/all/format/json?_dc=1342630239638&node=root. Request header field X-Requested-With is not allowed by Access-Control-Allow-Headers.
如何解决围绕工作停止这个我真的想与煎茶工作,但我的大部分工作将JSON源合作???
任何帮助
也是我的JSON输出看起来像这样它没有一个rootproperty节点?
[{
"id": "7253",
"title": "hello",
"description": "",
"source": "syrianews",
"cat_name": "Syrianews"
}, {
"id": "7208",
"title": "hello",
"description": "",
"source": "syrianews",
"cat_name": "Syrianews"
}]
你如何做到访问JSON文件?给我看看。 – hekomobile 2012-07-18 17:01:50