MegaGlest Forum
MegaGlest => Forum discussion => Topic started by: ElimiNator on 3 May 2013, 01:18:56
-
Video/YouTube problem, embedded videos don't show properly.
Here is an example:
http://www.youtube.com/watch?v=Sh7IjiUillI
-
This is quite strange. They were working previously, and the rendered HTML code works fine off-site. Tom, Titi, and Softcoder, has anything changed server side recently?
-
It works fine for me on Firefox/Windows. Maybe your browser doesn't like the code?
-
It works fine for me on Firefox/Windows. Maybe your browser doesn't like the code?
I notice that it's working for Firefox, as well. However, Chrome isn't displaying the video properly. Taking the snippet of code used to display the video and putting it into a new HTML file displays properly in Chrome.
-
That's due to the Content Security Policy I adopted for this site. For a reason I'm failing to understand, Chromium considers "www.youtube.com (http://www.youtube.com)" to not match the hostname contained in the following URL: "http://www.youtube.com/v/Sh7IjiUillI&rel=1&fs=1 (http://www.youtube.com/v/Sh7IjiUillI&rel=1&fs=1)". I'm trying to get more information on why the Chromium implementation considers this to be a mismatch. If it turns out this can't be fixed I'll loosen those restrictions. In the meantime please use plain HTTP links.
Thanks.
Update:
So I played wit this for a while, trying various ways to work around this restriction. But it turns out the only serious solution is to make the plugin which adds those Youtube embeds to reference the source over httpS and not just http IF the page embedding it uses this scheme. Omega: Do you think you could add this?
-
Test post: