Hello, I understand that this may be an older issue.
I have consulted this source, but unfortunately, the solution provided did not work for me.
Upon using Chrome, the following error message is displayed:
XMLHttpRequest cannot load target url. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'my web url' is therefore not allowed access.
The code I am currently using is as follows:
Ext.Ajax.request({
url: 'target url',
method: 'POST',
cors: true,
useDefaultXhrHeader: false,
success: function() {
alert('success');
},
failure: function() {
alert('failure');
}
});