title: ExtJS and Ajax with SSL (https)
body: <p>I have an ExtJS application on top of a Django application, and I need to post to <code>/accounts/logout/</code> in order to invalidate the session and then redirect to <code>/</code>.</p>
  
  <p>The code below runs locally but fails on the live site, which has SSL. I have an issue with doing the Ajax POST via ExtJS. The code is the following:</p>
  
  <pre><code>Ext.Ajax.request({
      url: '/accounts/logout/',
      withCredentials: true,
      method: 'POST',
      success: function() {
          console.log('successfully logged out');
          window.location.href='/'
      }
  });
  </code></pre>
  
  <p>The response status in Chrome is <code>(cancelled)</code> as shown in this screenshot:
  <img src="https://i.stack.imgur.com/VEMNU.png" alt="enter image description here"></p>
  
  <p>In addition I get this warning at console level:</p>
  
  <blockquote>
    <p>The page at <code>https://domain.example.com/</code> displayed insecure content
    from <code>http://console.pharmacy.com.mt/</code>.</p>
  </blockquote>
  
  <p>Am I missing some config object with the <code>Ext.Ajax</code> request above?</p>