diff --git a/rpiWebApp.py b/rpiWebApp.py index 97b1ec6..256ac06 100644 --- a/rpiWebApp.py +++ b/rpiWebApp.py @@ -377,7 +377,8 @@ def resource_not_found(e): def handle_unauthorized(): temp = login() t = make_response(temp) - t.headers['WWW-Authenticate'] = 'Basic realm="Access to the staging site"' + if "/get_" in request.path: + t.headers["WWW-Authenticate"] = 'Basic realm="Access to the staging site"' return t, 401 diff --git a/templates/login.html b/templates/login.html index 5b5cc3d..720f7f8 100644 --- a/templates/login.html +++ b/templates/login.html @@ -2,7 +2,7 @@ {% block content %}
-
+