I've been looking into packaged apps for Firefox OS and I'm relying on the Simulator since I don't have a build of the OS on a device. I'm having trouble with XHR requests and I'm not sure if the issue is a setting I'm overlooking or if the Simulator is just buggy.
My reading of the documentation suggests adding permissions for network-http should be sufficient for making XHR requests to a web service. I have also seen in source code a systemXHR permission. I've tried both but so far no joy. I'm using the simulator with Firefox for OS X and my manifest looks like so:
Manifest:
{
"version": "0.1",
"name": "Hello World",
"description": "A hello world app.",
"launch_path": "/app/index.html",
"icons": {
"16": "/app/img/icons/mortar-16.png",
"48": "/app/img/icons/mortar-48.png",
"128": "/app/img/icons/mortar-128.png"
},
"installs_allowed_from": ["*"],
"permissions": {
"systemXHR": {},
"network-http": {},
"network-tcp": {}
},
"type": "privileged"
}
A similar question has been answered, but I think the answer might have been meant for a web app, not a packaged app, and an example would helpful regarless.
Am I missing something obvious, is the simulator broken, or is CORS required for packaged apps?