Hello,
The following CORS works perfectly when defined from stores:

Code:
Ext.define('EDUX.store.Students', {
    extend: 'Ext.data.Store',
    alias: 'store.students',
    fields: ['fname', 'lname', 'age', 'enrol', 'class',  'gender', 'dom', 'year', 'course', 'pic'],
    proxy: {
        type: 'ajax',
        method: 'get',
        withCredentials: true,
        url: global.getBaseUrl() + 'api/api.php?student=view',
        reader: {type: 'json',    rootProperty: 'rows'
        }
    }
});
However, when I define the same store inside the viewModel stores, CORS fails. Following is the code:

Code:
Ext.define('EDUX.view.settings.SettingsModel', {
    extend: 'Ext.app.ViewModel',
    alias: 'viewmodel.settings',
    data: {
        name: 'EDUX',
        school: 'Programme'
    },
    stores: {
        students: {
            fields: ['fname', 'lname', 'age', 'enrol', 'class',  'gender', 'dom', 'year', 'course', 'pic'],
            withCredentials: true,
            proxy: {
                url:global.getBaseUrl() + 'api/api.php?student=view',
                type: 'ajax', 
                reader: {
                    type: 'json', 
                    rootProperty: 'rows'
                }},
                autoLoad:true
        }
})
Is this a bug or am I doing it wrongly?