【发布时间】:2013-02-22 17:59:39
【问题描述】:
我在 ASP.NET 中有一个网站。
页面加载后,出现以下错误。
错误: X-Frame-Options 拒绝加载:http://www.youtube.com/v/lgZBsWGaQY0&feature 不允许跨域框架。
由于此错误,YouTube 视频无法在 iframe 中打开。
<div style="display: none; position: relative;">
<div id="divYouTubeClasses">
<iframe id="Iframe1" style="background-color: White !important; border: 0;" width="835"
height="430" src="http://www.youtube.com/v/g5RM5StrMXY" scrolling="no"></iframe>
</div>
</div>
请为此错误提供一些解决方案。
【问题讨论】:
标签: asp.net asp.net-mvc asp.net-mvc-3 iframe