From 4cfddcfb42444754978220bdeb453788d5d719e1 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Mon, 16 Apr 2018 20:43:06 -0500 Subject: [PATCH] Add allow headers for preflight requests --- src/invidious.cr | 1 + 1 file changed, 1 insertion(+) diff --git a/src/invidious.cr b/src/invidious.cr index e8df4ecf..a2ff9ddc 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -846,6 +846,7 @@ end 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" end error 404 do |env|