I have a ruby Sinatra server set up, which looks like this:
require 'sinatra'
require 'rest-client'
url = "http://youtube.com"
get '/youtube' do
RestClient.get(url)
end
This approach seems to work fine when the page is visited by a computer which is on a network where the URL, in this case youtube.com, is NOT blocked. When I run visit the page while connected to a network which blocks sites like youtube, the website style is different (bland) and very few images on the page load (including video).
How can this be fixed, so that when the site it visited on a restricted network, youtube displays as usual?