From c9a75042d24ed969e0cf5ae0d7b76ccb3c41a93b Mon Sep 17 00:00:00 2001 From: James Taylor Date: Tue, 17 Aug 2021 17:58:17 -0700 Subject: Add support for more qualities, merging video+audio using MSE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jesús --- server.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'server.py') diff --git a/server.py b/server.py index ebe67dc..c038d6d 100644 --- a/server.py +++ b/server.py @@ -87,6 +87,9 @@ def proxy_site(env, start_response, video=False): response_headers = response.getheaders() if isinstance(response_headers, urllib3._collections.HTTPHeaderDict): response_headers = response_headers.items() + if video: + response_headers = (list(response_headers) + +[('Access-Control-Allow-Origin', '*')]) if first_attempt: start_response(str(response.status) + ' ' + response.reason, -- cgit v1.2.3