Add allow headers for preflight requests

pull/3/head
Omar Roth 7 years ago
parent 86627d8303
commit 4cfddcfb42

@ -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|

Loading…
Cancel
Save