[
https://issues.apache.org/jira/browse/CB-8144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14257167#comment-14257167
]
ASF subversion and git services commented on CB-8144:
-----------------------------------------------------
Commit 05c6c9719ddd1f1fbbdacd4405b40215736105a0 in cordova-docs's branch
refs/heads/master from [~zalun]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-docs.git;h=05c6c97 ]
CB-8144 ffos: Add systemXHR as a solution for whitelisting (close #248)
> Add SystemXHR as a solution for whitelist in FFOS
> -------------------------------------------------
>
> Key: CB-8144
> URL: https://issues.apache.org/jira/browse/CB-8144
> 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](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest#Permissions).
> 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
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]