Clicking on this link will load and send data from and to Google.
This script loads a YouTube embedded video when a user clicks on the image.
Once loaded, the video will NOT be played automatically - this needs a second click.
This version is simpler to add, and probably a little bit faster to load.
However, it appears to be less flexible than the API version.
See the documentation for more information.
To prevent accidentally loading YouTube resources without
asking the user for consent, Apache sites have a
default Content-Security-Policy
that does not allow this.
When you're confident you've applied the appropriate consent validation,
you can allow loading resources from YouTube by putting
the following
Content-Security-Policy
in your
.htaccess
:
# Allow loading YouTube content after ensuring consent.
# Additional allowances to be coordinated with privacy team
Header set Content-Security-Policy "frame-src https://www.youtube-nocookie.com https://www.youtube.com"