mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-27 11:06:32 +00:00
Fix observer security filter (#3173)
This commit is contained in:
parent
2b4527fa64
commit
8240623806
@ -173,7 +173,7 @@ class SecurityMiddleware(CoreSysAttributes):
|
|||||||
|
|
||||||
# Observer
|
# Observer
|
||||||
if supervisor_token == self.sys_plugins.observer.supervisor_token:
|
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)
|
_LOGGER.warning("%s invalid Observer access", request.path)
|
||||||
raise HTTPForbidden()
|
raise HTTPForbidden()
|
||||||
_LOGGER.debug("%s access from Observer", request.path)
|
_LOGGER.debug("%s access from Observer", request.path)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user