On Thu, Jul 25, 2013 at 4:20 PM, Fabrice Desre <[email protected]> wrote:
> On 07/25/2013 06:34 AM, Luca Greco wrote: > > > 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. > > That's not correct. What the "origin" property in the manifest let you > do is to choose the ORIGIN part of the app://ORIGIN/path/to/file.html in > the packaged apps URI. By default, the system will generate a random one > at install time. > > This means that cross-domain restrictions still apply, and you can't > access resources from http://foo.com if your app has an app://foo.com > origin. > My apologies, I've not directly used the "origin" property so I've linked the comment from the simulator issues where I've read about it the first time, but I realize that I wasn't clear enough. The origin property let the developer to choose the origin part of the packaged app origin (app://ORIGIN), and then he can configure his own server to accept request from that url using CORS, am I right? Best, Luca _______________________________________________ dev-webapps mailing list [email protected] https://lists.mozilla.org/listinfo/dev-webapps
