diff --git a/src/invidious/routes/video_playback.cr b/src/invidious/routes/video_playback.cr index a4ad04a7..19342e4e 100644 --- a/src/invidious/routes/video_playback.cr +++ b/src/invidious/routes/video_playback.cr @@ -26,7 +26,7 @@ module Invidious::Routes::VideoPlayback end # Sanity check, to avoid being used as an open proxy - if !host.matches?(/[\w-]+.googlevideo.com/) + if !host.matches?(/[\w-]+.googlevideo.com/) && !host.matches?(/[\w-]+.c.youtube.com/) return error_template(400, "Invalid \"host\" parameter.") end