如何嵌入没有Cookie的YouTube视频? [英] How to embed YouTube videos without cookies?

查看:62
本文介绍了如何嵌入没有Cookie的YouTube视频?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

过去,我们可以通过简单地指向其他URL来嵌入没有cookie的YouTube视频,例如, https://https://youtube-nocookie.com/embed/sRrqF8eXs38"rel =" noreferrer> https://youtube-nocookie.com/embed/sRrqF8eXs38 以获取不包含Cookie的版本.

In the past we could embed YouTube videos without cookies by simply pointing to a different URL, so for example https://youtube-nocookie.com/embed/sRrqF8eXs38 to get the version without cookies.

这不再起作用.该URL返回 404 ,其中cookie版本仍然存在.

This does not work any longer. The URL returns a 404, where the cookie version still exists.

我现在找不到有关如何执行操作的参考.

I could not find any reference on how to do it now.

推荐答案

使用www版本,效果很好: https://www.youtube-nocookie.com/embed/sRrqF8eXs38

Use the www version, that works perfectly fine: https://www.youtube-nocookie.com/embed/sRrqF8eXs38

当您选择扩展隐私选项时,这也是他们的自动代码生成器输出的版本.

That is the version their automatic code generator outputs as well, when you chose the extended privacy option.

看起来他们出于某种原因删除了非www版本.(尽管不添加自动重定向会这样做很奇怪.也许这只是暂时的问题或错误.)

Looks like they removed the non-www version for some reason. (Although doing that without adding an automatic redirect would be kind of a weird move. Perhaps it is just a temporary problem or error.)

这篇关于如何嵌入没有Cookie的YouTube视频?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆