[wp-trac] [WordPress Trac] #44610: Allow Youtube-Player to use youtube-nocookie.com URLS to avoid setting cookies.
WordPress Trac
noreply at wordpress.org
Wed Jul 25 17:52:34 UTC 2018
#44610: Allow Youtube-Player to use youtube-nocookie.com URLS to avoid setting
cookies.
-------------------------------------------------+-------------------------
Reporter: jepperask | Owner: (none)
Type: enhancement | Status: reopened
Priority: normal | Milestone:
Component: Customize | Version: 4.9.7
Severity: normal | Resolution:
Keywords: needs-testing 2nd-opinion needs- | Focuses: privacy
unit-tests has-patch |
-------------------------------------------------+-------------------------
Comment (by jepperask):
The embedded HTML in posts appears to origin from
https://www.youtube.com/oembed. Regardless of whether it is a youtube.com
or youtube-nocookie.com URL we're trying to embed, the returned HTML is an
iframe with src set to a youtube.com URL.
Unless we can find information on how to query youtube-oembed for a
youtube-nocookie.com URL as src in the iframe, I believe our only choice
is to string-replace the src. I have succesfully embedded a youtube-
nocookie.com video this way, without any cookies being set.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44610#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list