A way to specify allowed domains for Sencha's Proxy?
I have a native sencha app which references services from my server at a specific domain.
Rather than using limited jsonp calls (I'm getting stuck having to write complicated code to do simple ajax calls for rest creates / updates) I would like to be able to interchangeably use ajax + json calls.
Is there a way to allow calls to a specific server domain in my Sencha app - and thus remove the requirement to use jsonp? (all my service calls will always live at that one particular domain)
I did find the following options:
- in the proxy setting useDefaultXhrHeader : false + on the server specify: response.setHeader("Access-Control-Allow-Origin", clientOrigin)
This option is not sufficient because I don't want to open up requests to any domain, only the particular one where my services reside.
Originally Posted by fmoseley