Javascript 颤振web HtmlElementView引发异常

Javascript 颤振web HtmlElementView引发异常,javascript,html,flutter-web,Javascript,Html,Flutter Web,HtmlElementView与其他网站配合良好。但我在React中设计了一个视频播放器,它将在自定义播放器中播放youtube视频,然后我将其托管到firebase。它在所有浏览器中都运行良好。我在HTMLElementView的帮助下将该网站添加到Flatter网页。它加载了页面。但不播放视频。我检查了一下控制台。它表明 Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://

HtmlElementView与其他网站配合良好。但我在React中设计了一个视频播放器,它将在自定义播放器中播放youtube视频,然后我将其托管到firebase。它在所有浏览器中都运行良好。我在HTMLElementView的帮助下将该网站添加到Flatter网页。它加载了页面。但不播放视频。我检查了一下控制台。它表明

Failed to execute 'postMessage' on 'DOMWindow': The target origin provided 
('https://www.youtube-nocookie.com') does not match the recipient window's origin 
('https://royaliosvideoplayer.web.app').

Access to XMLHttpRequest at 'https://googleads.g.doubleclick.net/pagead/id' from origin  
'https://www.youtube-nocookie.com' has been blocked by CORS policy: No 'Access-Control- 
 Allow-Origin' header is present on the requested resource.

 GET https://googleads.g.doubleclick.net/pagead/id net::ERR_FAILED
有人知道有没有其他方法可以将我的网站嵌入到颤振网络中