I need to temporally allow cross domain XMLHttpRequest. Changing firefox security setting seems to be the way to go. But I\'ve tried with this and this but they did
What about using something like mod_proxy? Then it looks to your browser like the requests are going to the same server, but they're really being forwarded to another server.
I used Fiddler as a proxy. Fiddler redirects localhost calls to a external server.
I configured Firefox to use manual proxy (127.0.0.1 port 8888). Fiddler capture the calls and redirect them to another server, by using URL filters.
Have you tried using jQuery's ajax request? As of version 1.3 jQuery supports certain types of cross domain ajax requests.
Quoting from the reference above:
Note: All remote (not on the same domain) requests should be specified as GET when 'script' or 'jsonp' is the dataType (because it loads script using a DOM script tag). Ajax options that require an XMLHttpRequest object are not available for these requests. The complete and success functions are called on completion, but do not receive an XHR object; the beforeSend and dataFilter functions are not called.
As of jQuery 1.2, you can load JSON data located on another domain if you specify a JSONP callback, which can be done like so: "myurl?callback=?". jQuery automatically replaces the ? with the correct method name to call, calling your specified callback. Or, if you set the dataType to "jsonp" a callback will be automatically added to your Ajax request.
I've tried using that 'UniversalBrowswerRead' thing too and it didn't work. You might be able to add an 'allow' header, but I haven't actually tried doing it yet. It's pretty new.
You can find more information here
To allow cross domain:
about:config
security.fileuri.strict_origin_policy
in the search barYou can now close the tab. Normally you can now make cross domain request with this config.
See here for more details.
You can check out my add on for firefox. It allows to cross domain in the lastest firefox version: https://addons.mozilla.org/en-US/firefox/addon/cross-domain-cors/