Forum /
Ext JS Community Forums 4.x /
Ext: Discussion /
EXTJS form load from cross domain
EXTJS form load from cross domain
Hello Guys,
I am using EXTJS4 version. when I am trying to load data in form using load method. Its throw me an error like "405 Method Not Allowed".
We are fetching data from cross domain using MVC API in .Net server.
its headache to work on cross domain with EXTJS.
Sencha Premium Member
If you are working cross domain you need to use jsonp. The issue you are having is with browser security, not Ext.
http://docs.sencha.com/ext-js/4-1/#!...method-request
Ext JS Premium Member
I think then the problem is, how to configure the JSONP with a form load?
Sencha Premium Member
I haven't looked closely, but I don't think it supports it out of the box. IMO it's easy enough to do a request and just call setValues on the form or something like that.
ExtJS also supports this method of cross-origin resource sharing.
http://www.w3.org/TR/cors/
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us