Sencha touch XMLHttpRequest无法在Senchatouch-2中加载带有ajax的URL

Sencha touch XMLHttpRequest无法在Senchatouch-2中加载带有ajax的URL,sencha-touch,sencha-touch-2,Sencha Touch,Sencha Touch 2,我得到以下信息: I'm trying to get some j son data from a local server using Senchatouch-2 app: //动态列表视图 load http://localhost:8084/Sencha/senchatest. Origin http://localhost:8084 is not allowed by Access-Control-Allow-Origin. Even If I launch my sencha

我得到以下信息:

I'm trying to get some j son data from a local server using Senchatouch-2 app:   
//动态列表视图

load http://localhost:8084/Sencha/senchatest. Origin http://localhost:8084 is not allowed by Access-Control-Allow-Origin.

Even If I launch my sencha app as an, I get this:

   XMLHttpRequest cannot load http://localhost:8084/Sencha/senchatest.Origin null is not allowed by Access-Control-Allow-Origin

The web service returns data. I try to catch the data items like this:
你知道我为什么会犯这个错误吗

谢谢


请注意

您正遭受同一原产地政策之苦

通过以下步骤:


这也将帮助您:

确保您已通过服务器获取页面,而不是通过文件系统加载页面

@radha是否验证了这一点?
 proxy:{
            type: 'ajax',
            method:'GET',
            model:'List.model.Mainmodel',
            url: 'http://localhost:8084/Sencha/senchatest',

            reader: {
                type: 'json',
                rootProperty: 'data.firstName.lastName'
              }}  

And I'm trying to get this structure:
   {"data":[{"firstName": "dhina", "lastName": "karan"},{"firstName": "dhina", "lastName": "karan"},{"firstName": "dhina", "lastName": "karan"},{"firstName": "dhina", "lastName": "karan"},{"firstName": "dhina", "lastName": "karan"},{"firstName": "dhina", "lastName": "karan"}]}