问题
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