diff --git a/supervisor/api/middleware/security.py b/supervisor/api/middleware/security.py index bc781cfbc..42aaebc8d 100644 --- a/supervisor/api/middleware/security.py +++ b/supervisor/api/middleware/security.py @@ -173,7 +173,7 @@ class SecurityMiddleware(CoreSysAttributes): # Observer if supervisor_token == self.sys_plugins.observer.supervisor_token: - if not OBSERVER_CHECK.match(request.url): + if not OBSERVER_CHECK.match(request.path): _LOGGER.warning("%s invalid Observer access", request.path) raise HTTPForbidden() _LOGGER.debug("%s access from Observer", request.path)