Get values from localStorage to use in Sencha Touch AJAX Proxy
问题 In my Sencha Touch application I store some values in localStorage and they get stored just fine. Later I need to use those values for a request to a store and I need to pass those values as request headers. The code looks like the following: Ext.define('AppName.store.storeName', { extend: 'Ext.data.Store', requires: [ 'AppName.model.modelName' ], config: { model: 'AppName.model.modelName', storeId: 'storeName', proxy: { type: 'ajax', url: 'http://dynamic', headers: { auth_token: localStorage