How can I add a request header to an ExtJS ajax request?
I specifically want to add the header: accept-encoding
to equal true.
With ExtJs 6. Ext.Ajax.defaultHeaders doesn't work. But using the following setter works
Ext.Ajax.setDefaultHeaders({
'accept-encoding' : true
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With