Add CORS headers to /api/manifest/dash/id/videoplayback

This commit is contained in:
Omar Roth 2018-08-07 13:23:27 -05:00
parent c1bb75e616
commit 9b0c5ffc71

View File

@ -2536,11 +2536,12 @@ get "/api/v1/search" do |env|
end
get "/api/manifest/dash/id/videoplayback" do |env|
env.response.headers["Access-Control-Allow-Origin"] = "*"
env.redirect "/videoplayback?#{env.params.query}"
end
get "/api/manifest/dash/id/videoplayback/*" do |env|
puts env.request.path
env.response.headers["Access-Control-Allow-Origin"] = "*"
env.redirect env.request.path.lchop("/api/manifest/dash/id")
end