mirror of
https://github.com/iv-org/invidious.git
synced 2025-04-19 15:15:58 -04:00
Fix CORS on /latest_version
This commit is contained in:
parent
08390acd0c
commit
a05d9bf0aa
@ -298,6 +298,7 @@ module Invidious::Routes::VideoPlayback
|
||||
url += "&title=#{URI.encode_www_form(title, space_to_plus: false)}" if title
|
||||
end
|
||||
|
||||
env.response.headers["Access-Control-Allow-Origin"] = "*"
|
||||
return env.redirect url
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user