cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rakat...@apache.org
Subject spec commit: Adding google.com to CSP and removing older one
Date Mon, 09 May 2016 18:02:33 GMT
Repository: cordova-mobile-spec
Updated Branches:
  refs/heads/master f642d54fa -> ff9f2fa3a


Adding google.com to CSP and removing older one


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

Branch: refs/heads/master
Commit: ff9f2fa3acce67ccdb211d46ebb3a6d4213a7c5d
Parents: f642d54
Author: Raghav Katyal <rakatyal@microsoft.com>
Authored: Mon May 9 11:02:03 2016 -0700
Committer: Raghav Katyal <rakatyal@microsoft.com>
Committed: Mon May 9 11:02:03 2016 -0700

----------------------------------------------------------------------
 config.xml                                              | 2 --
 cordova-plugin-mobilespec-tests/tests/localXHR.tests.js | 2 +-
 www/csp-incl.js                                         | 2 +-
 3 files changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/ff9f2fa3/config.xml
----------------------------------------------------------------------
diff --git a/config.xml b/config.xml
index a13e35c..8840907 100644
--- a/config.xml
+++ b/config.xml
@@ -25,7 +25,6 @@
     </description>
     
     <access origin="http://audio.ibeat.org" />
-    <access origin="http://cordova-filetransfer.jitsu.com" />
     <access origin="http://whatheaders.com" />
     <access origin="http://*.apache.org" />
     <access origin="https://*.apache.org" />
@@ -37,7 +36,6 @@
     <access origin="httpssss://example.com" />
     
     <allow-navigation href="http://audio.ibeat.org" />
-    <allow-navigation href="http://cordova-filetransfer.jitsu.com" />
     <allow-navigation href="http://whatheaders.com" />
     <allow-navigation href="http://*.apache.org" />
     <allow-navigation href="https://*.apache.org" />

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/ff9f2fa3/cordova-plugin-mobilespec-tests/tests/localXHR.tests.js
----------------------------------------------------------------------
diff --git a/cordova-plugin-mobilespec-tests/tests/localXHR.tests.js b/cordova-plugin-mobilespec-tests/tests/localXHR.tests.js
index e2d16b6..e084b9c 100644
--- a/cordova-plugin-mobilespec-tests/tests/localXHR.tests.js
+++ b/cordova-plugin-mobilespec-tests/tests/localXHR.tests.js
@@ -100,7 +100,7 @@ exports.defineAutoTests = function () {
         });
 
         it("XMLHttpRequest.spec.9 calls onload from successful http get", function (done)
{
-            createXHR("http://google.com", true, done, errorHandler.onError.bind(null, done));
+            createXHR("http://www.google.com", true, done, errorHandler.onError.bind(null,
done));
         });
 
         it("XMLHttpRequest.spec.3 should be able to load the current page", function (done)
{

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/ff9f2fa3/www/csp-incl.js
----------------------------------------------------------------------
diff --git a/www/csp-incl.js b/www/csp-incl.js
index 8dc5496..eef832e 100644
--- a/www/csp-incl.js
+++ b/www/csp-incl.js
@@ -51,7 +51,7 @@ if (!window._disableCSP) {
         case 'ios':
         case 'windows':
             cspMetaContent = 'default-src \'self\' https://ssl.gstatic.com/accessibility/javascript/android/;'
+
-                            ' connect-src \'self\' http://cordova-filetransfer.jitsu.com;'
+
+                            ' connect-src \'self\' http://www.google.com;' +
                             ' media-src \'self\' http://cordova.apache.org/downloads/ https://cordova.apache.org/downloads/;'
+
                             ' frame-src \'self\' http://stealbridgesecret.test/ data: gap:;'
+
                             ' img-src \'self\' data: cdvfile:;' +


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


Mime
View raw message