News:

Wondering if this will always be free?  See why free is better.

Main Menu

Youtube and Https

Started by br360, April 15, 2014, 06:43:17 PM

Previous topic - Next topic

br360

This isn't really an smf issue, but I've tried to get support through chrome forums, googling info, etc. and have found nothing. Hopefully someone here might have an idea of the problem.

My site is https and when someone posts youtube videos, nothing at all is showing up.(This only happens in chrome by the way. IE and firefox does show the videos) I have posted links from youtube that were http and https, and still nothing at all

When I disable my https, the videos show on the forum with no issue. Has anyone else experienced this and have any idea why youtube videos won't show when using chrome on a forum with https?

Here is a screen cap of what the post looks like (completely empty)


mashby

What is the code in there where the blank box is? Any chance you can provide a link to that page as well?
Always be a little kinder than necessary.
- James M. Barrie

br360

Sure. It depends on the mod I used. (Suki's Ohara youtube embed where you had to use the youtube tags, or the simple youtube embed where you could just post a youtube link without the bbc tags and it would show as a video)

For one video, I tried all of these and nothing worked-

https://www.youtube.com/watch?v=5kn7pE7ytw4
http://www.youtube.com/watch?v=5kn7pE7ytw4

the share link-

http://youtu.be/5kn7pE7ytw4
https://youtu.be/5kn7pE7ytw4

I even read that not specifying the protocol might work (which it didn't)

//youtu.be/5kn7pE7ytw4 (that wasn't even a link, yet as soon as I added : before the //, it went blank)

mashby

OK, and how about the link to this on your site?
Always be a little kinder than necessary.
- James M. Barrie

br360

My site is private, so I would prefer not to link it here. I'm pretty positive it isn't a problem with my site as the videos will show when someone is using IE or firefox; just not in chrome. If I change my site to http, the video will show just fine in chrome- it's only when my site is https that chrome won't show the video. (the image I added in my first post is what will show- just a big blank screen where the video should be)

When I check my chrome console, this is the error I see-

[blocked] The page at 'https://mysite.com/index.php?topic=25.0' was loaded over HTTPS, but ran insecure content from 'http://www.youtube.com/embed/yCmsZUN4r_s': this content should also be loaded over HTTPS.

The thing is that I am loading videos from youtube with https in their url. I know this is a chrome issue, and not a problem with my site or smf. I have seen this issue asked on different forums, but nobody seemed to have a solution that worked.

mashby

OK, that is fine. Mind PMing me a link then? I'm just more curious than anything else.
Always be a little kinder than necessary.
- James M. Barrie

Storman™

I'm wondering if you need to invoke the Chrome command line flag to get round it:  --allow-running-insecure-content

http://www.chromium.org/developers/how-tos/run-chromium-with-flags

Just a thought but not a real fix  ;)

Kindred

The problem is...   If you site is https, then everything served from your site is expected to be https - and served from within the secure site.

The problem exists in all browsers, you probably just told your other browsers to ignore the security warning and remember that ignore...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Storman™

+1  Exactly.

QuoteThe thing is that I am loading videos from youtube with https in their url.

But you are not, thats just it.

Currently you have this link:

http://www.youtube.com/embed/yCmsZUN4r_s

To be secure within https it needs to be like this:

https//www.youtube-nocookie.com/embed/yCmsZUN4r_s

However, whether that would work as an embed is another matter and I suspect not.

Advertisement: