cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject cordova-plugin-whitelist git commit: CB-9133 Adds support for CDVFILE. This closes #6
Date Wed, 17 Jun 2015 00:36:01 GMT
Repository: cordova-plugin-whitelist
Updated Branches:
  refs/heads/master 3ce6da7e5 -> 94254c1d2


CB-9133 Adds support for CDVFILE. This closes #6


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-whitelist/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-whitelist/commit/94254c1d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-whitelist/tree/94254c1d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-whitelist/diff/94254c1d

Branch: refs/heads/master
Commit: 94254c1d2f6e382519b066475e2b0a4df6d67f90
Parents: 3ce6da7
Author: agamemnus <agamemnus@users.noreply.github.com>
Authored: Mon Jun 8 12:14:35 2015 -0400
Committer: Steve Gill <stevengill97@gmail.com>
Committed: Tue Jun 16 17:35:19 2015 -0700

----------------------------------------------------------------------
 src/android/WhitelistPlugin.java | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-whitelist/blob/94254c1d/src/android/WhitelistPlugin.java
----------------------------------------------------------------------
diff --git a/src/android/WhitelistPlugin.java b/src/android/WhitelistPlugin.java
index 4e4f57e..c322b82 100644
--- a/src/android/WhitelistPlugin.java
+++ b/src/android/WhitelistPlugin.java
@@ -48,6 +48,8 @@ public class WhitelistPlugin extends CordovaPlugin {
     public WhitelistPlugin(Whitelist allowedNavigations, Whitelist allowedIntents, Whitelist
allowedRequests) {
         if (allowedRequests == null) {
             allowedRequests = new Whitelist();
+            allowedRequests.addWhiteListEntry("content://*", false);
+            allowedRequests.addWhiteListEntry("cdvfile://*", false);
             allowedRequests.addWhiteListEntry("file:///*", false);
             allowedRequests.addWhiteListEntry("data:*", false);
         }
@@ -77,6 +79,9 @@ public class WhitelistPlugin extends CordovaPlugin {
                 if ("*".equals(origin)) {
                     allowedNavigations.addWhiteListEntry("http://*/*", false);
                     allowedNavigations.addWhiteListEntry("https://*/*", false);
+                    allowedNavigations.addWhiteListEntry("content://*", false);
+                    allowedNavigations.addWhiteListEntry("cdvfile://*", false);
+                    allowedNavigations.addWhiteListEntry("file:///*", false);
                     allowedNavigations.addWhiteListEntry("data:*", false);
                 } else {
                     allowedNavigations.addWhiteListEntry(origin, false);


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message