extjs4.1 - ExtJS and Ajax with SSL (https) -


i have extjs application on top of django application, , need post /accounts/logout/ in order invalidate session , redirect /.

the code below runs locally fails on live site, has ssl. have issue doing ajax post via extjs. code following:

ext.ajax.request({     url: '/accounts/logout/',     withcredentials: true,     method: 'post',     success: function() {         console.log('successfully logged out');         window.location.href='/'     } }); 

the response status in chrome (cancelled) shown in screenshot: enter image description here

in addition warning @ console level:

the page @ https://domain.example.com/ displayed insecure content http://console.pharmacy.com.mt/.

am missing config object ext.ajax request above?

try removing withcredentials: true

ext.ajax.request({     url: '/accounts/logout/',     method: 'post',     success: function() {         console.log('successfully logged out');         window.location.href='/'     } }); 

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -