PDA

View Full Version : [CLOSED] Cross Domain Ajax Request with WCF does not work with Ext.Ajax



yoorek
4 Nov 2011, 1:44 AM
In Ext.Ajax.request following line of code causes that Sencha Ajax request does not work with WCF


headers['X-Requested-With'] = me.defaultXhrHeader;

This line causes OPTIONS request before GET and 405 error thrown by WCF method.

After commenting setting this header eveything works perfect.

The question is : why anybody would set this header and leave no option to not-set-it?
This header is useless (not used by jQuery which works like a charm with WCF)

mitchellsimoens
16 Nov 2011, 8:47 AM
Sencha Touch 2 (soon) and Ext JS 4 have CORS support. This is not a bug.