我认为这与目标来源有关https
。我怀疑是因为您使用的是iFrame网址,http
而不是https
。尝试更改要嵌入为的文件的urlhttps
。
例如:
'//www.youtube.com/embed/' + id + '?showinfo=0&enablejsapi=1&origin=http://localhost:9000';
成为:
'https://www.youtube.com/embed/' + id + '?showinfo=0&enablejsapi=1&origin=http://localhost:9000';