You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running version 1.6.0. I'm using this in a Rails 4 Ruby 2 application. I started having intermittent errors unrelated to the page where I embed a video when I run the Rails 4 version of the application. These errors occurred on Safari, Google and Firefox on Mac and Windows computers. I decided to try and look for a needle in a haystack. When I did Web Inspector in Safari I saw the following error:
auto_html_for :body do
html_escape
image
youtube(:width => 640, :height => 360, :autoplay => false, :hide_related => true)
link :rel => "nofollow"
simple_format
end
My view updates body with the link and uses body_html to display the embedded YouTube video.
From what I have read in GitHub I believe the gem is supposed to take care of mixed content warnings. If I'm wrong please let me know. I will look at other options if the gem is not supposed to take care of this.
The text was updated successfully, but these errors were encountered:
This is not mixed content warning. What you're seeing is that Youtube tries to "talk" to the parent frame which is your app. You can safely ignore that.
I am running version 1.6.0. I'm using this in a Rails 4 Ruby 2 application. I started having intermittent errors unrelated to the page where I embed a video when I run the Rails 4 version of the application. These errors occurred on Safari, Google and Firefox on Mac and Windows computers. I decided to try and look for a needle in a haystack. When I did Web Inspector in Safari I saw the following error:
[Error] Blocked a frame with origin "http://www.youtube.com" from accessing a frame with origin "http://myrailsapp.com". Protocols, domains, and ports must match.
Here is my code in my model:
auto_html_for :body do
html_escape
image
youtube(:width => 640, :height => 360, :autoplay => false, :hide_related => true)
link :rel => "nofollow"
simple_format
end
My view updates body with the link and uses body_html to display the embedded YouTube video.
From what I have read in GitHub I believe the gem is supposed to take care of mixed content warnings. If I'm wrong please let me know. I will look at other options if the gem is not supposed to take care of this.
The text was updated successfully, but these errors were encountered: