From e9e6bbd710011460962ce7d87ce66fbe63df3f64 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Wed, 6 Jun 2018 21:46:57 -0500 Subject: [PATCH] Update options for videoplayback preflight --- src/invidious.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious.cr b/src/invidious.cr index d3e8a4ac..d3c563c8 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -973,7 +973,7 @@ get "/channel/:ucid" do |env| templated "channel" 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"