I'm sure it's probably simple that I'm overlooking (usually is), but I'm banging my head against the wall with this simple authentication issue. While I don't expect many here to be expert in Ext JS, I think it's more about how I'm constructing my AJAX calls than anything else.
Code:
Ext.define('MyApp.store.base.MyJsonStore', {
extend: 'Ext.data.Store',
config: {
storeId: 'MyJsonStore',
proxy: {
type: 'ajax',
url: 'http://mywebsite.com:2086/json-api/listaccts',
method: 'GET',
username: 'cpanelusergoeshere',
password: 'h2liku3h4lkquyweilkruyahwukey',
reader: {
type: 'json'
}
}
}
});
The error message I keep seeing from the console I'm using is:
I've removed any real information in the above code sample, but it gets the general idea across with what I'm trying to do. More or less, build a better cPanel/WHM manager than other mobile options that are currently available to me while mobile and out in the field.
If I can get this working, I'll be able to do some slick stuff with this library for mobile devices. I'll admit REST calls aren't my favorite thing, and I'm not the best out there...but I'm willing to learn.
Also, unless I've misunderstood something, the hash is only required if using root, and even then I've seen other iPhone apps that don't require the hash (curious about that). I don't expect people to be typing the full hash into an iPhone or Android application to be honest.