I’m developing a phonegap app for android and I need to be able to run the app on chrome. My app doesn’t have any phone functionality yet. Is all Javascript, HTML and CSS.
The problem is I’m fetching some info of my server but I’m having trouble debbuging the javascript, so I wanted to test te app on the browser so I can use the developer tools, but the ajax call wont work on Chrome (It does on the phone).
Any ideas?
You need to run Chrome with the flag
--disable-web-security. You can either runchrome.exe --disable-web-securityfrom the command line (in the appropriate directory) or edit the shortcut and add it. (Assuming you’re on Windows)