I had Ext.Ajax overriden with defaultHeaders and method in Extjs4.2-
Ext.define('overrides.Ajax', {
override: 'Ext.Ajax',
defaultHeaders: { 'Content-Type': 'application/json; charset=utf-8' },
method: 'POST',
But with Extjs 6.2 defaultHeaders and method is not setting. Any idea on the issue?
I don't know why that doesn't work but we had the same issue in the past, we solved it by setting the default headers via set method:
I don't know if it is the best way to go but it is a way. We have this code in the Application.js