From 11e871ba8376b4b0563d7215a11493b8d201e1c0 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Mon, 16 Apr 2018 19:31:57 -0500 Subject: [PATCH] Add CORS header for videoplayback --- src/invidious.cr | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/invidious.cr b/src/invidious.cr index e8e0e1af..a4691988 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -825,6 +825,8 @@ get "/videoplayback" do |env| env.response.headers[key] = value end + env.response.headers["Access-Control-Allow-Origin"] = "*" + chunk = Bytes[8] loop do