mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 04:07:08 +00:00
Allow discovery info accessible from CORS enabled domains (#46226)
This commit is contained in:
parent
1b194e3b2f
commit
e27619fe50
@ -178,6 +178,7 @@ class APIDiscoveryView(HomeAssistantView):
|
|||||||
requires_auth = False
|
requires_auth = False
|
||||||
url = URL_API_DISCOVERY_INFO
|
url = URL_API_DISCOVERY_INFO
|
||||||
name = "api:discovery"
|
name = "api:discovery"
|
||||||
|
cors_allowed = True
|
||||||
|
|
||||||
async def get(self, request):
|
async def get(self, request):
|
||||||
"""Get discovery information."""
|
"""Get discovery information."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user