mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Add CORS headers to /api/manifest/dash/id/videoplayback
This commit is contained in:
parent
c1bb75e616
commit
9b0c5ffc71
1 changed files with 2 additions and 1 deletions
|
@ -2536,11 +2536,12 @@ get "/api/v1/search" do |env|
|
||||||
end
|
end
|
||||||
|
|
||||||
get "/api/manifest/dash/id/videoplayback" do |env|
|
get "/api/manifest/dash/id/videoplayback" do |env|
|
||||||
|
env.response.headers["Access-Control-Allow-Origin"] = "*"
|
||||||
env.redirect "/videoplayback?#{env.params.query}"
|
env.redirect "/videoplayback?#{env.params.query}"
|
||||||
end
|
end
|
||||||
|
|
||||||
get "/api/manifest/dash/id/videoplayback/*" do |env|
|
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")
|
env.redirect env.request.path.lchop("/api/manifest/dash/id")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue