I need to send a request via GET but ExtJS changes the method for OPTIONS
I changed useDefaultXhrHeader even though I could not send, I also need to disable CORS
https://fiddle.sencha.com/#view/editor
Ext.application({
name: 'Fiddle',
launch: function () {
    Ext.Ajax.request({
        url: 'http://localhost:8888/api/sign/certificates',
        method: "GET",
        useDefaultXhrHeader : false,
        headers: {
            'Content-Type': 'application/json',
            'Access-Control-Allow-Origin': '*'
        },
        success: function (response, opts) {
            var obj = Ext.decode(response.responseText);
            console.dir(obj);
        },
        failure: function (response, opts) {
            console.log('server-side failure with status code ' + response.status);
        }
    });
}
});
 
    