Invidious is an alternative front-end to YouTube
Add CORS header for videoplayback
Omar Roth11e871ba8376
diff --git a/src/invidious.cr b/src/invidious.crindex e8e0e1af..a4691988 100644--- a/src/invidious.cr+++ b/src/invidious.cr@@ -825,6 +825,8 @@ get "/videoplayback" do |env|env.response.headers[key] = valueend+ env.response.headers["Access-Control-Allow-Origin"] = "*"+chunk = Bytes[8]loop do