summaryrefslogtreecommitdiff
path: root/onionshare/web/web.py
diff options
context:
space:
mode:
Diffstat (limited to 'onionshare/web/web.py')
-rw-r--r--onionshare/web/web.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/onionshare/web/web.py b/onionshare/web/web.py
index 183c512c..010702be 100644
--- a/onionshare/web/web.py
+++ b/onionshare/web/web.py
@@ -132,6 +132,14 @@ class Web(object):
self.force_shutdown()
return ""
+ @self.app.route("/noscript-xss-instructions")
+ def noscript_xss_instructions():
+ """
+ Display instructions for disabling Tor Browser's NoScript XSS setting
+ """
+ r = make_response(render_template('receive_noscript_xss.html'))
+ return self.add_security_headers(r)
+
def error404(self):
self.add_request(Web.REQUEST_OTHER, request.path)
if request.path != '/favicon.ico':