1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

YouTube embedding no longer working in Chrome

Discussion in 'Troubleshooting and Problems' started by wwwicked, Mar 7, 2013.

  1. wwwicked

    wwwicked Active Member

    Has anyone else encountered this? From today or so, embedded YouTube videos are no longer appearing when viewing in Chrome. The console says:

    Refused to display 'http://www.youtube.com/v/AV1pjNqudf0&fs=1' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.

    I assume it's something to do with the latest Chrome update, but does anyone know what I need to change? Preferably something in the embed HTML, rather than my own browser (as I don't really want to have to tell all Chrome users to tweak X-setting).

    I currently have the default:

    <object width="500" height="300" data="http://www.youtube.com/v/{$id}&amp;fs=1">
        <param name="movie" value="http://www.youtube.com/v/{$id}&amp;fs=1" />
        <param name="allowFullScreen" value="true" />
        <param name="wmode" value="opaque" />
        <embed src="http://www.youtube.com/v/{$id}&amp;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" wmode="opaque" width="500" height="300" />
    Chrome is latest: Version 25.0.1364.152 m
  2. Fuhrmann

    Fuhrmann Well-Known Member

    Same here!
  3. craigiri

    craigiri Well-Known Member

    I'm not sure you are referring to the same problem, but it is known that videos will often not show in Chrome if you have already viewed them a couple times!

    As a test, try it in the incognito window and see if that works.....

    Try flushing the browser cache completely (from beginning of time), logging out and then back in again and closing chrome and opening.
  4. wwwicked

    wwwicked Active Member

    I don't think that's the problem. I've restarted Chrome and was using Incognito in the first place - plus it's being reported by other forum users. I think it must be related to the most recent Chrome update, as it's only seemed to start happening in the past 24 hours or so.

    I saw a suggestion to use this: http://www.youtube.com/embed/QXJPWqnQbbs instead of , but XF YT embeds don't use the latter anyway.

    I might try hacking the forum code to add header('X-Frame-Options: ALLOW');, and see if that helps (although that probably opens up other concerns...).
  5. wwwicked

    wwwicked Active Member

    Tell you what's strange; the video above is working for me. Maybe I am not on the most recent version of XF, although I thought I was (I'm on 1.1.3). Will try updating this evening...
  6. craigiri

    craigiri Well-Known Member

    I wonder if the network caches are affecting this - that is, the cloud, google, your ISP and even sometimes your router will cache items.

    In my case, the vids were in WP and the problem was the same - that is, if I had watched them a couple times, they showed up blank. But it was in chrome browser...
  7. Shelley

    Shelley Well-Known Member

    working fine for me with the reported version by the OP, no issues here in chrome.
  8. wwwicked

    wwwicked Active Member

    I've noticed some other XF forums where YouTube embeds seem to be working for me, and they're using:

    <iframe width="500" height="300" src="http://www.youtube.com/embed/wXRtpMtZFUI?wmode=opaque" frameborder="0" allowfullscreen></iframe>
    That looks like it maps to the solution I mentioned above, so may try that. Not sure where the different embed method has come from though. This forum seems to be using the same <object> method that my forum is (but maybe this one is more up to date than the latest released version).
  9. mjp

    mjp Well-Known Member

    Seeing the same problem in Chrome.
  10. wwwicked

    wwwicked Active Member

    This now appears to have fixed itself. YouTube embedded videos are appearing on my site again. Very peculiar.
  11. Fuhrmann

    Fuhrmann Well-Known Member

    Yes, it's ok now!
  12. atmaca

    atmaca Member

    Same problem on Firefox 24.0 :/
  13. atmaca

    atmaca Member

    Is there any ideas? :confused:

Share This Page