使用 Youtube iframe API 时 postMessage 错误

san*_*bor 5 youtube-iframe-api

似乎 Youtube iframe API 最近在他们的 iframe API 中引入了一个错误。

这是一个错误示例,直接从Youtube iframe 演示页面中提取:

Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://www.youtube.com') does not match the recipient window's origin ('https://google-developers.appspot.com').
g.C @ www-widgetapi.js:116
g.G @ www-widgetapi.js:113
setInterval (async)
ab @ www-widgetapi.js:89
kb @ www-widgetapi.js:114
W @ www-widgetapi.js:98
Y @ www-widgetapi.js:118
createYTPlayer @ as3_demo_functions.js:385
onYouTubePlayerAPIReady @ as3_demo_functions.js:424
(anonymous) @ www-widgetapi.js:140
(anonymous) @ www-widgetapi.js:140
10:33:24.521 
Run Code Online (Sandbox Code Playgroud)

知道如何解决这个问题吗?据说设置origin应该防止这种情况发生,但似乎他们没有origin在他们的 JS 中正确使用。