From 795a58d6380628d0f9fbd1f98a376c8c72afe366 Mon Sep 17 00:00:00 2001 From: Julien Ehrhart Date: Sun, 5 Dec 2021 11:45:33 +0100 Subject: [PATCH] Fix #175 --- custom_components/webrtc/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/webrtc/utils.py b/custom_components/webrtc/utils.py index f357448..fb7e8d0 100644 --- a/custom_components/webrtc/utils.py +++ b/custom_components/webrtc/utils.py @@ -71,7 +71,7 @@ async def serve_file(request): return web.FileResponse(path) route = app.router.add_route("GET", url_path, serve_file) - app['allow_cors'](route) + app['allow_all_cors'](route) async def init_resource(hass: HomeAssistantType, url: str, ver: str) -> bool: