Stefan Kendall
Stefan Kendall

Reputation: 67872

Testing phonegap ajax locally in a browser?

Is there any product or tool I can use to test a phonegap application's ajax in chrome? I'd like to keep developing in Chrome, but cross-domain requests are going to kill me here.

Ideally, I could still use chrome, and somehow the ajax would get intercepted and run by a proxy of some sort.

Upvotes: 2

Views: 432

Answers (2)

Stefan Kendall
Stefan Kendall

Reputation: 67872

Start chrome using --disable-web-security and you can make cross-site ajax requests. This was broken for a while, but it's fixed again.

Upvotes: 4

Drew Dahlman
Drew Dahlman

Reputation: 4972

use the simulator. If that doesn't suit your needs your best bet is to dev that portion elsewhere on the server, or create the proxy.

Upvotes: 1

Related Questions