Fancybox Youtube Channel Embed

孤街浪徒 提交于 2019-12-13 04:28:24

问题


Hopefully a simple one - I'm trying to embed my Youtube channel (not a specific video, which is what all existing answers are aimed at, it seems) in a Fancybox. The popup appears fine, but due to Youtube's

    X-FRAME-OPTIONS: SAMEORIGIN

... the content isn't displaying. I've included the origin parameter in the URL, but I still get denied due to the above. I'm probably just using the wrong syntax for channels or similar: could anyone help? The URL I'm using (without success) is below (actual channel/domain substituted):

    http://www.youtube.com/embed?listType=user_uploads&list=MyChannelName&origin=http://www.mydomain.com/

回答1:


Works fine for me - http://jsfiddle.net/aTgsN/



来源:https://stackoverflow.com/questions/11736744/fancybox-youtube-channel-embed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!