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.
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.
To block cookies from iFrame embedded pages like youtube you need to watch their embed settings. In Youtube there is an option to enable advanced privacy options (see image right). If you enable this you will see, that the embed src changes to “youtube-nocookie.com”.
Consent is required because analytics cookies are not strictly necessary to provide the service that the user requests. For example, the user can access your online service whether analytics cookies are enabled or not.
YouTube has an alternative domain, youtube-nocookie.com, that can be used to load an embedded video without automatically setting any cookies. However, when the user plays the video, YouTube places cookies, even when the video is loaded with this domain.
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.
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.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With