David Martín
David Martín

Reputation: 69

Testing PhoneGap+AJAX apps in browser

I have been using Cordova/PhoneGap for some time and until now, I used Chrome to try out the application in a browser.

The app had lots of AJAX petitions to a different server, so I used Chrome's --disable-web-security argument to allow for these. However, this argument seems not to work any longer: new versions of Chrome complain that this argument is not allowed. I've tried this on Chromium and I get the same error message either. Furthermore, I have tried setting Firefox's security.fileuri.strict_origin_policy to false to see if I could get it to work there, to no avail.

Do you know how to test such an app in a modern browser? If not, is there a way to fall back to a previous version of Chrome?

Upvotes: 1

Views: 206

Answers (1)

Rubens Pinheiro
Rubens Pinheiro

Reputation: 499

You can use this plugin. You can activate/deactivate CORS with one click :)

Upvotes: 2

Related Questions