Add video headers
Some checks failed
Deploy to Pages / build (push) Failing after 2m46s

This commit is contained in:
Andras Schmelczer 2026-06-03 08:15:01 +01:00
parent cf509360e6
commit 0ab9889fc8
7 changed files with 535 additions and 131 deletions

View file

@ -57,6 +57,7 @@ const ANALYTICS_SCRIPT_SRC_PATTERN =
function isSafeScriptTag(tag) {
if (tag.includes('data-theme-script')) return true;
if (tag.includes('data-thumbnail-iframe-script')) return true;
if (tag.includes('data-video-thumbnail-script')) return true;
if (ANALYTICS_SCRIPT_SRC_PATTERN.test(tag)) return true;
const typeMatch = tag.match(/\btype=["']([^"']+)["']/i);
if (!typeMatch) return false;