嗨,我把一个youtube视频嵌入到一个html文件中,但是当我尝试播放它时,它却说找不到视频?
<iframe id="myFrame" style="width: 800px ; height: 500px" src="https://www.youtube.com/embed/dQw4w9WgXcQ" frameborder="0"
allowfullscreen></iframe>当我检查控制台时,我得到的错误是
**A cookie associated with a cross-site resource at http://youtube.com/ was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.**感谢你的帮助
发布于 2020-06-14 06:39:11
欢迎来到Stack overflow。
W3scools HTML YouTube Videos在这方面有一个简单的指南。有关彻底性,请参见以下示例:
<iframe width="420" height="315"
src="https://www.youtube.com/embed/tgbNymZ7vqY">
</iframe>
https://stackoverflow.com/questions/62365367
复制相似问题