title: Sencha touch 2 : Getting XMLHttpRequest cannot load file: data.json.Origin null is not allowed by Access-Control-Allow-Origin
body: <p>I am trying to load some data from the json file hosted on the local server but I am getting an error "<code>XMLHttpRequest cannot load http://localhost:8080/data.json?_dc=1355779280677&amp;page=1&amp;start=0&amp;limit=25. Origin null is not allowed by Access-Control-Allow-Origin. "</code> as soon as the application loads. My list is not populated with the records.</p>
  
  <p>My code is as below.</p>
  
  <pre><code>Ext.define('POC.view.HomePage', {
      extend: 'Ext.TabPanel',
      requires:['Ext.TitleBar','Ext.dataview.List',
      'Ext.Ajax','Ext.data.proxy.Ajax'],
      xtype:'homePage', 
      alias: 'widget.wuHomePageView',
  
       config: {
       fullscreen: true,
          items: [
          {
            title: 'Home',
            iconCls: 'home',
  
            items: [
  
         {
      xtype: 'list',
          title: 'Sample',
          height: '100%',
          onItemDisclosure: true,
  
          store: {
          autoLoad: true,
          fields: ['name'],
              proxy: {
             type: 'json',
             url: 'http://localhost:8080/data.json',
              reader: {
                 type: 'ajax',
                 rootProperty: 'stores'
                  }
                  }
                  },
               itemTpl: '{name}',
  
                  }],
  
                  },
              {
              title: 'Contact',
              iconCls: 'user',
              html: 'Contact Screen'
                  }
              ]
              },
  
  });
  </code></pre>
  
  <p>My Json File is as below.</p>
  
  <pre><code>{
      "stores": [
          {
              "name": "Science Gallery",
              "logo": "sciencegallery.jpg",
              "desc": "Get some food",
              "telephone": "016261234",
              "city": "Dublin",
              "add1": "Pearse Street",
              "post": "2",
              "country": "Ireland",
              "latitude": "53.34422",
              "longitude": "-6.25006",
              "menu": [
                  {
                      "item": "SC Sandwich"
                  },
                  {
                      "item": "SC Toasted Sandwich"
                  },
                  {
                      "item": "SC Panini"
                  },
                  {
                      "item": "SC Ciabatta"
                  },
                  {
                      "item": "SC Burrito"
                  }
              ]
          },
          {
              "name": "Spar",
              "logo": "spar.jpg",
              "desc": "Get some food",
              "telephone": "016261234",
              "city": "Dublin",
              "add1": "Mayor Street",
              "post": "2",
              "country": "Ireland",
              "latitude": "53.34422",
              "longitude": "-6.25006",
              "menu": [
                  {
                      "item": "Spar Sandwich"
                  },
                  {
                      "item": "Spar Toasted Sandwich"
                  },
                  {
                      "item": "Spar Panini"
                  },
                  {
                      "item": "Spar Ciabatta"
                  },
                  {
                      "item": "Spar Burrito"
                  }
              ]
          }
      ]
  }
  </code></pre>
  
  <p>Please help. </p>
  
  <p>Thanks</p>