S
S
Shedar2014-02-18 19:59:45
JavaScript
Shedar, 2014-02-18 19:59:45

How to test ajax requests to external sites in sencha touch without building the application?

I am making a sencha touch + phonegap app.
The app requests data from multiple sites. There are no JSONP options on the sites.
When testing with a local web server (sencha web start), there are problems with cross origin and an exception on the request.
From the assembled android application I successfully receive a response.

How can I test the application (so that ajax requests work) so as not to rebuild the android version after each change?

So far, the only option that comes to mind is to use another web server and proxy requests through it in order to avoid cross-domain requests in the dev environment.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2014-02-18
@Shedar

run chrome with the --disable-web-security flag or use CORS on the server.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question