Skip to content

NVR with realtime local object detection for IP cameras

Fix header auth (#11985)

Miguel Angel Nubla02af1b0ac766
diff --git a/frigate/api/auth.py b/frigate/api/auth.py
index fb2ad3a34b..9245056ed0 100644
--- a/frigate/api/auth.py
+++ b/frigate/api/auth.py
@@ -193,7 +193,7 @@ def auth():
# or use anonymous if none are specified
if proxy_config.header_map.user is not None:
upstream_user_header_value = request.headers.get(
- current_app.frigate_config.auth.header_map.user,
+ proxy_config.header_map.user,
type=str,
default="anonymous",
)