apache / privacy-website

Web site for Apache Data Privacy
7 stars 14 forks source link

Allow YouTube to be embedded #35

Closed raboof closed 7 months ago

raboof commented 7 months ago

The Apache-global default Content-Security-Policy has frame-src 'self', which forbids loading YouTube in a frame. However, when project correctly use opt-in, they are allowed to override this restriction using .htaccess. Show how that's done (and fix the demos).

I also changed the video to something that actually moves in the first second after hitting 'play', to avoid confusion :).

Fixes #32 (though it would still be nice to also document this, not only do it ;) )

Tested in a local Apache httpd