Set explicit `referrerpolicy` for YouTube embeds
authorTim Düsterhus <duesterhus@woltlab.com>
Mon, 25 Apr 2022 10:49:48 +0000 (12:49 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Mon, 25 Apr 2022 10:51:10 +0000 (12:51 +0200)
commit936c0f6d5d3f5a811110f7add4fa688a3e9a8377
treec5b65132d99230dc210815845fce5be05344bd1a
parentb30a146bebc33bfcf0197c416b16cd40f4e5c0e0
Set explicit `referrerpolicy` for YouTube embeds

YouTube requires the `Referer` header to be set for (some) embeds to work. By
using the attribute any `referrer-policy` header set on the top level document
is overridden (e.g. `same-origin`).

Co-authored-by: Sascha Greuel <github@1-2.dev>
com.woltlab.wcf/mediaProvider.xml
wcfsetup/install/files/lib/system/bbcode/media/provider/YouTubeBBCodeMediaProvider.class.php