Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seeing Mixed Content Warning (I Believe) #88

Closed
lightbe opened this issue Nov 1, 2013 · 1 comment
Closed

Seeing Mixed Content Warning (I Believe) #88

lightbe opened this issue Nov 1, 2013 · 1 comment

Comments

@lightbe
Copy link

lightbe commented Nov 1, 2013

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.

@mszyndel
Copy link
Contributor

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.

@dejan dejan closed this as completed Dec 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants