mirror of
https://gitea.invidious.io/iv-org/invidious.git
synced 2024-08-15 00:53:41 +00:00
Add options for videoplayback
This commit is contained in:
parent
11e871ba83
commit
86627d8303
1 changed files with 5 additions and 0 deletions
|
@ -843,6 +843,11 @@ get "/videoplayback" do |env|
|
|||
end
|
||||
end
|
||||
|
||||
options "/videoplayback" do |env|
|
||||
env.response.headers["Access-Control-Allow-Origin"] = "*"
|
||||
env.response.headers["Access-Control-Allow-Methods"] = "GET"
|
||||
end
|
||||
|
||||
error 404 do |env|
|
||||
error_message = "404 Page not found"
|
||||
templated "error"
|
||||
|
|
Loading…
Reference in a new issue