From 7ac81e6b7e8163a8bdaa32d2b874287028f56bcf Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Wed, 22 May 2019 20:15:49 -0700 Subject: [PATCH] Allow static resources without basic auth --- onionshare/web/web.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/onionshare/web/web.py b/onionshare/web/web.py index 1500a23c..c6e902ed 100644 --- a/onionshare/web/web.py +++ b/onionshare/web/web.py @@ -142,6 +142,11 @@ class Web(object): @self.app.before_request def conditional_auth_check(): + # Allow static files without basic authentication + if(request.path.startswith(self.static_url_path + '/')): + return None + + # If public mode is disabled, require authentication if not self.common.settings.get('public_mode'): @self.auth.login_required def _check_login():