Skip to content

Commit 651c01c

Browse files
[xExtension-YouTube] Add referrer policy to iframe in extension.php (#382)
* [xExtension-YouTube] Add referrer policy to iframe in extension.php I've been seeing Error 153 / Video player configuration error just like reported here: https://forum.obsidian.md/t/youtube-video-embed-does-not-work-video-player-configuration-error/103181 Added referrer policy as taken from youtube embed iframe via share button on youtube.com, seems to be working nicely. * Bump version --------- Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
1 parent c592520 commit 651c01c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

xExtension-YouTube/extension.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,7 @@ public function getHtml(FreshRSS_Entry $entry, string $url): string {
444444
height="' . $this->height . '"
445445
src="' . $url . '"
446446
frameborder="0"
447+
referrerpolicy="strict-origin-when-cross-origin"
447448
allowFullScreen></iframe>';
448449

449450
if ($this->showContent) {

xExtension-YouTube/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "YouTube Video Feed",
33
"author": "Kevin Papst, Inverle",
44
"description": "Embed YouTube feeds inside article content.",
5-
"version": "1.0.0",
5+
"version": "1.1.0",
66
"entrypoint": "YouTube",
77
"type": "user"
88
}

0 commit comments

Comments
 (0)