You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by bh...@apache.org on 2013/09/24 22:31:46 UTC

docs commit: [CB-1111] Update access element docs for bb10

Updated Branches:
  refs/heads/master 0fd4115e0 -> e0976df5a


[CB-1111] Update access element docs for bb10


Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/e0976df5
Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/e0976df5
Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/e0976df5

Branch: refs/heads/master
Commit: e0976df5aa583e82ed6abe5c74c63051388cf8f7
Parents: 0fd4115
Author: Bryan Higgins <br...@bryanhiggins.net>
Authored: Tue Sep 24 16:30:48 2013 -0400
Committer: Bryan Higgins <br...@bryanhiggins.net>
Committed: Tue Sep 24 16:30:48 2013 -0400

----------------------------------------------------------------------
 docs/en/edge/guide/appdev/whitelist/index.md | 25 ++++++++++++++++-------
 1 file changed, 18 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/e0976df5/docs/en/edge/guide/appdev/whitelist/index.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/guide/appdev/whitelist/index.md b/docs/en/edge/guide/appdev/whitelist/index.md
index b08bb2f..88a0ffe 100644
--- a/docs/en/edge/guide/appdev/whitelist/index.md
+++ b/docs/en/edge/guide/appdev/whitelist/index.md
@@ -68,31 +68,42 @@ Access to [google.com][2]:
 
     <access origin="http://google.com" />
 
-## BlackBerry
+## BlackBerry 10
 
 ### Details
 
-The whitelisting rules are found in `www/config.xml` and declared with the element `<access uri="..." />`.
+The whitelisting rules are found in `www/config.xml` and declared with 
+the element `<access origin="..." />`.
 
-For a complete reference, see the [BlackBerry WebWorks Access Element documentation][8].
+BlackBerry 10 handles wildcards differently than other platforms in two ways:
+
+1) Content accessed by XMLHttpRequest must be declared explicity. origin="*" will
+   not be respected for this use case. Alternatively, all web security may be
+   disabled using a preference.
+ 
+2) subdomains="true" may be used in place of "*.domain"
 
 ### Syntax
 
 Access to [google.com][2]:
 
-    <access uri="http://google.com" subdomains="false" />
+    <access origin="http://google.com" subdomains="false" />
 
 Access to  [maps.google.com][4]:
 
-    <access uri="http://maps.google.com" subdomains="false" />
+    <access origin="http://maps.google.com" subdomains="false" />
 
 Access to all the subdomains on [google.com][2]:
 
-    <access uri="http://google.com" subdomains="true" />
+    <access origin="http://google.com" subdomains="true" />
 
 Access to all domains, including `file://` protocol:
 
-    <access uri="*" subdomains="true" />
+    <access origin="*" subdomains="true" />
+
+Disable all web security:
+
+    <preference name="websecurity" value="disable" />
 
 iOS
 ---