【发布时间】:2021-12-22 06:51:17
【问题描述】:
在iframe 中使用嵌入式 Soundcloud 播放器时:
<iframe width="100%" height="300" scrolling="no" frameborder="no" allow="autoplay" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/251273255&color=%23ff5500&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true&visual=true"></iframe>
它存储 cookie。
如何在没有 cookie 的情况下嵌入 Soundcloud 播放器?
注意:我已经按照Recommended method to prevent any content inside iframe from setting cookies 的建议尝试了<iframe ... sandbox> 甚至sandbox="allow-scripts",但是播放器无法正常工作。
【问题讨论】:
-
@Coja 我正在寻找不使用第三方服务的解决方案。
标签: html cookies iframe sandbox soundcloud