mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Add allow headers for preflight requests
This commit is contained in:
parent
86627d8303
commit
4cfddcfb42
1 changed files with 1 additions and 0 deletions
|
@ -846,6 +846,7 @@ end
|
||||||
options "/videoplayback" do |env|
|
options "/videoplayback" do |env|
|
||||||
env.response.headers["Access-Control-Allow-Origin"] = "*"
|
env.response.headers["Access-Control-Allow-Origin"] = "*"
|
||||||
env.response.headers["Access-Control-Allow-Methods"] = "GET"
|
env.response.headers["Access-Control-Allow-Methods"] = "GET"
|
||||||
|
env.response.headers["Access-Control-Allow-Headers"] = "Content-Type"
|
||||||
end
|
end
|
||||||
|
|
||||||
error 404 do |env|
|
error 404 do |env|
|
||||||
|
|
Loading…
Reference in a new issue