无法加载YouTube视频iframe

时间:2018-12-14 13:00:18

标签: iframe youtube

我将视频放在网站上的iframe中,但无法正常运行,我出错了

Failed to load https://googleads.g.doubleclick.net/pagead/id: Redirect from 'https://googleads.g.doubleclick.net/pagead/id' to 'about:blank' has been blocked by CORS policy: Redirect location 'about:blank' has a disallowed scheme for cross-origin requests.

我的YouTube代码:

<div class="embed-responsive embed-responsive-16by9"><iframe src="https://www.youtube.com/embed/HiixPZ0xkk0" frameborder="0" style="height: 0px;"></iframe></div>

有什么主意吗?

编辑:

完整错误 enter image description here

2 个答案:

答案 0 :(得分:0)

您可以下载视频并将其用作源。

答案 1 :(得分:0)

好的,我在这里找到解决方法:http://centrumps.pl/iframe-problem-w-prestashop-1-7-z-youtube/

必须从地址中删除www