based from instruction gaia email app readme.md : Bring up the error console in firefox by hitting control-shift-J. Paste the code into the "Code" box and click the "evaluate" button.
------------------------------------------------------------------------ host = 'http://your.dev.domain'; perm = Components.classes["@mozilla.org/permissionmanager;1"] .createInstance(Components.interfaces.nsIPermissionManager); ios = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); uri = ios.newURI(host, null, null); perm.add(uri, 'systemXHR', 1); 'Successfully added systemXHR permission for '+host; ------------------------------------------------------------------------ On 03/10/2013 06:07 PM, [email protected] wrote: > Hi guys! > > I want to build a client app for a service what I don't own. > If I'm right, I should use XMLHttpRequest to get data from the external site. > But, since the site is on a different domain, I won't get anything back from > them, if they doesn't send the "Access-Control-Allow-Origin" header. > > My question is that how can I send a request to them. > I saw that probably I need the "systemXHR" manifest permission which requires > "privileged" app type. But to have my app to be a privileged, the app must be > approved by Firefox Marketplace. > > How can I get the privilege during the development to test my app? > > Currently I'm using the Firefox OS Simulator in Firefox nightly on Linux. > > Thanks for your help > > Lajos Koszti > _______________________________________________ > dev-webapps mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-webapps > _______________________________________________ dev-webapps mailing list [email protected] https://lists.mozilla.org/listinfo/dev-webapps
