On Thu, Jul 25, 2013 at 1:31 PM, Mar <[email protected]> wrote: > Hi all! > > I'm making a chat application, which needs to access SIM contacts. > The manifest has privileged type tag. But then I can not access my server > outside to send a message, because the app throws a cross domain error. > > How can I do it? > How can I access to the SIM contacts and still having access outside? > Thanks in advance. >
As far as I know, a packaged app can use systemXHR [1] privilege to request permission to access any domain, which is more than what your app needs, but it should works on FirefoxOS 1.0 and 1.1. In FirefoxOS 1.1 there's a new option [2]: - "origin" attribute in the manifest.webapp to be able to access that origin from the packaged app without requesting the systemXHR privilege. [1]: https://github.com/mozilla-b2g/gaia/blob/master/showcase_apps/twittershare/manifest.webapp#L11 https://github.com/mozilla-b2g/gaia/blob/master/showcase_apps/twittershare/js/twittershare.js#L21 https://developer.mozilla.org/en-US/docs/Web/Apps/App_permissions https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest#Non-standard_properties [2]: https://github.com/mozilla/r2d2b2g/issues/596#issuecomment-19504843 https://bugzilla.mozilla.org/show_bug.cgi?id=852720 Best, Luca _______________________________________________ dev-webapps mailing list [email protected] https://lists.mozilla.org/listinfo/dev-webapps
