cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CB-8144) Add SystemXHR as a solution for whitelist in FFOS
Date Wed, 10 Dec 2014 17:52:12 GMT


ASF GitHub Bot commented on CB-8144:

GitHub user zalun opened a pull request:

    CB-8144 add systemXHR as a solution for whitelisting in FFOS


You can merge this pull request into a Git repository by running:

    $ git pull ffos_whitelist_guide

Alternatively you can review and apply these changes as the patch at:

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #248
commit 835a1ece96fce471e09b0cb0849d9e304e83ff33
Author: Piotr Zalewa <>
Date:   2014-12-10T10:48:07Z

    add systemXHR as a solution for whitelisting


> Add SystemXHR as a solution for whitelist in FFOS
> -------------------------------------------------
>                 Key: CB-8144
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: FirefoxOS
>            Reporter: Piotr Zalewa
>            Assignee: Piotr Zalewa
> Proposed content
> In Firefox OS there is no concept of whitelisting a specific domain. Instead
> there is a special permission called 
> [SystemXHR](
> There is a need to add this permission to `config.xml`:
> 	<platform name="firefoxos">
> 		<permission name="systemXHR" privileged="true" description="load data from server"
> 	</platform>
> The `XMLHttpRequest` object needs to be instantiated with two parameters 
> `mozAnon` and `mozSystem`:
> 	var request = new XMLHttpRequest({
> 		mozAnon: true,
> 		mozSystem: true});
> This solution is transparent so there is no difference for other platforms.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message