Add OPTIONS to allowed CORS methods
This commit is contained in:
parent
a7c6f3538c
commit
ad06b2007a
|
@ -2663,26 +2663,26 @@ 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, OPTIONS"
|
||||||
env.response.headers["Access-Control-Allow-Headers"] = "Content-Type, range"
|
env.response.headers["Access-Control-Allow-Headers"] = "Content-Type, Range"
|
||||||
end
|
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, OPTIONS"
|
||||||
env.response.headers["Access-Control-Allow-Headers"] = "Content-Type, range"
|
env.response.headers["Access-Control-Allow-Headers"] = "Content-Type, Range"
|
||||||
end
|
end
|
||||||
|
|
||||||
options "/api/manifest/dash/id/videoplayback" do |env|
|
options "/api/manifest/dash/id/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, OPTIONS"
|
||||||
env.response.headers["Access-Control-Allow-Headers"] = "Content-Type, range"
|
env.response.headers["Access-Control-Allow-Headers"] = "Content-Type, Range"
|
||||||
end
|
end
|
||||||
|
|
||||||
options "/api/manifest/dash/id/videoplayback/*" do |env|
|
options "/api/manifest/dash/id/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, OPTIONS"
|
||||||
env.response.headers["Access-Control-Allow-Headers"] = "Content-Type, range"
|
env.response.headers["Access-Control-Allow-Headers"] = "Content-Type, Range"
|
||||||
end
|
end
|
||||||
|
|
||||||
get "/videoplayback/*" do |env|
|
get "/videoplayback/*" do |env|
|
||||||
|
|
Loading…
Reference in a new issue