title: ExtJS Ajax Request Method GET
body: <p>I need to send a request via GET but ExtJS changes the method for OPTIONS</p>
  
  <p>I changed useDefaultXhrHeader even though I could not send, I also need to disable CORS</p>
  
  <p><a href="https://fiddle.sencha.com/#view/editor" rel="nofollow noreferrer">https://fiddle.sencha.com/#view/editor</a></p>
  
  <pre><code>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);
          }
      });
  
  }
  });
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/CvOVU.jpg" rel="nofollow noreferrer">PRINT</a></p>