AJAX 和 YouTube:“X-Frame-Options"到“SAMEORIGIN". [英] AJAX and YouTube: 'X-Frame-Options' to 'SAMEORIGIN'.

查看:32
本文介绍了AJAX 和 YouTube:“X-Frame-Options"到“SAMEORIGIN".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个网站,通过 jQuery 动态加载内容.这样做的原因是让音频播放器保持运行状态,同时无需刷新即可浏览页面内容.

I'm writing a site where content is loaded dynamically via jQuery. The reason for this is to leave an audio player running while being able to navigate through page content without refresh.

在尝试让 YouTube 视频正常运行时遇到问题,设置如下.

Ran into trouble trying to get YouTube videos to work, it's setup like this.

站点内容使用 .load() 加载,对于视频页面,它包含指向 YouTube 视频的无序列表链接,每个链接都有一个空的 <div> 用于 <;iframe> 的.单击链接会增加

  • 并将