Allow discovery info accessible from CORS enabled domains (#46226)

This commit is contained in:
Paulus Schoutsen 2021-02-08 17:19:55 +01:00 committed by GitHub
parent 1b194e3b2f
commit e27619fe50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -178,6 +178,7 @@ class APIDiscoveryView(HomeAssistantView):
requires_auth = False
url = URL_API_DISCOVERY_INFO
name = "api:discovery"
cors_allowed = True
async def get(self, request):
"""Get discovery information."""