每當我嘗試使用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