video - X-Frame-Option with YouTube in Ruby on Rails app -
video - X-Frame-Option with YouTube in Ruby on Rails app -
i'm trying display youtube video within iframe
in ruby on rails app. video, url https://www.youtube.com/watch?v=xiv_jomtgsa
, example, doesn't show on page , next error:
refused display 'https://www.youtube.com/watch?v=xiv_jomtgsa' in frame because set 'x-frame-options' 'sameorigin'.
i've tried things, calling on controller:
def allow_iframe_requests response.headers.delete('x-frame-options') end
but can't display video. i've tried incognito window in google chrome too.
ruby-on-rails video youtube same-origin-policy x-frame-options
Comments
Post a Comment