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:
in addition warning @ console level:
the page @
https://domain.example.com/
displayed insecure contenthttp://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
Post a Comment