diff --git a/app.py b/app.py index 151948c..2403f1a 100644 --- a/app.py +++ b/app.py @@ -272,7 +272,7 @@ def require_system_password(): if endpoint is None: return - if endpoint == 'system_auth': + if endpoint in ('system_auth', 'healthcheck'): return if 'authorized' not in request.cookies and not endpoint.startswith('login') and endpoint != 'favicon': @@ -1208,7 +1208,7 @@ def healthcheck(): correct_token = app.config.get('HEALTHCHECK_TOKEN') if header_token != correct_token: - abort(403) + abort(404) return 'OK', 200 # =========================================================================================