+ CryptPad: Zero Knowledge, Collaborative Real Time Editing
+
+
+
+
+
+
+
+
diff --git a/www/bounce/main.js b/www/bounce/main.js
new file mode 100644
index 000000000..b8814e943
--- /dev/null
+++ b/www/bounce/main.js
@@ -0,0 +1,10 @@
+define([], function () {
+ if (window.localStorage && window.localStorage.FS_hash) {
+ window.alert('The bounce application must only be used from the sandbox domain, ' +
+ 'please report this issue on https://github.com/xwiki-labs/cryptpad');
+ return;
+ }
+ var bounceTo = decodeURIComponent(window.location.hash.slice(1));
+ if (!bounceTo) { return; }
+ window.location.href = bounceTo;
+});
\ No newline at end of file
diff --git a/www/bounce/readme.md b/www/bounce/readme.md
new file mode 100644
index 000000000..f889674e4
--- /dev/null
+++ b/www/bounce/readme.md
@@ -0,0 +1,9 @@
+# Bounce app
+
+This app redirects you to a new URL.
+This app must only be served from CryptPad's safe origin, if this app detects that it is being
+served from the unsafe origin, it will throw an alert that it is misconfigured and it will refuse
+to redirect.
+
+If the URL is a javascript: URL, it will be trapped by CryptPad's Content Security Policy rules
+or in the worst case, it will run in the context of the sandboxed origin.
\ No newline at end of file
diff --git a/www/pad/index.html b/www/pad/index.html
index 2d67081e7..8be90cfb5 100644
--- a/www/pad/index.html
+++ b/www/pad/index.html
@@ -1,17 +1,17 @@
-
+
CryptPad
-
+
-
-
+