使用iframe內嵌youtub跨域問題

使用iframe內嵌youtub跨域問題有推薦的解法嗎,哥哥們

使用 youtube 的 iframe embed 語法不會你說的問題存在

<iframe width="560" height="315" src="https://www.youtube.com/embed/8qoh5_Ji6gU" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

A cookie associated with a cross-site resource at 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 and .

在chrome上他噴這個warring,在想有沒有更好的解法:thinking:
或者說有推薦的圖床可以放大量影片嗎,然後我再<source [src]="…" type=“video/mp4” />也可以

no, 這是 Chrome 80 針對 Cookie SameSite 的設定,先無視。因為這不是我們能調整的部分

延伸閱讀

OKKK 感謝您的解答:pray:t2: