Is it possible to set up Firefox to allow JSON/Ajax calls to my server
from a client html page loaded using the file:// protocol??
I am building a phonegap application which is loading web pages using
the file:// protocol and therefore XSS/XDS sandboxing rules don’t
apply. This is cool! Unfortunately, I can only get this to work from
my Android Emulator (see below for setup). It does NOT work under
Firefox running on my Vista client machine. This is disappointing
because I have grown used to using Firebug on the client to debug my
application.
FYI, The following setup works fine (but doesn’t allow Firefox/Firebug
debugging)…
Server: Ubuntu running on Virtual Box, Eth0 in Bridged mode, node.js
returning a JSON messages)
Development (Host) Machine: Windows Vista running Eclipse with Android
SDK and Phonegap stuff loaded
Client: Application (.apk) deployed to the standard Android Emulator
Edit: I eventually gave up on this and used JSONP :/
I know you like Firefox but you could try Safari on Windows since it allows cross domain from file:// and it has good tools in the form of web inspector.
You could also try Sleight (https://github.com/alunny/sleight). which is a very simple proxy written in NodeJS specifically for PhoneGap.