From 8ff8ed1e5f54807f669aa7c99ce2f2be3c02f999 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Tue, 7 Aug 2018 13:25:22 -0500 Subject: [PATCH] Fix options for '/videoplayback' --- src/invidious.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious.cr b/src/invidious.cr index f5aaddbb..4165de02 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -2678,7 +2678,7 @@ get "/api/manifest/hls_playlist/*" do |env| manifest end -options "/videoplayback*" do |env| +options "/videoplayback" do |env| env.response.headers["Access-Control-Allow-Origin"] = "*" env.response.headers["Access-Control-Allow-Methods"] = "GET" env.response.headers["Access-Control-Allow-Headers"] = "Content-Type, range"