Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
HTML函数在SSL下不工作_Ssl_Youtube_Embed - Fatal编程技术网

HTML函数在SSL下不工作

HTML函数在SSL下不工作,ssl,youtube,embed,Ssl,Youtube,Embed,我的网站和一些使用Youtube嵌入片段的背景音乐有问题 当我在没有SSL的情况下连接时,从JS到YT代码片段,一切都正常。 但当我使用SSL时,YT代码段不起作用 <embed height="1" src="http://www.youtube.com/v/-hIbRH1qcjU?autoplay=1" type="application/x-shockwave-flash" width="1" wmode="transparent"> 关于如何解决这个问题有什么想法吗?如

我的网站和一些使用Youtube嵌入片段的背景音乐有问题

当我在没有SSL的情况下连接时,从JS到YT代码片段,一切都正常。 但当我使用SSL时,YT代码段不起作用

<embed height="1" src="http://www.youtube.com/v/-hIbRH1qcjU?autoplay=1" type="application/x-shockwave-flash" width="1" wmode="transparent">


关于如何解决这个问题有什么想法吗?

如果您查看浏览器控制台,您可能会看到一条关于混合内容的消息。您正在https站点上包含http内容


只要将Youtube URL更改为https而不是http,我怀疑它会起作用。

如果这有帮助,请单击勾号图标接受此答案。干杯