CSP update

This commit is contained in:
unknown
2025-11-10 07:41:29 +10:00
parent fc7e7cf04d
commit ac5104824a
2 changed files with 2 additions and 2 deletions

View File

@@ -12,7 +12,7 @@
let goodTube_csp = false;
if (window.trustedTypes && window.trustedTypes.createPolicy && DOMPurify) {
goodTube_csp = window.trustedTypes.createPolicy("GoodTubePolicy", {
createHTML: (input) => DOMPurify.sanitize(input, { RETURN_TRUSTED_TYPE: false })
createHTML: (input) => DOMPurify.sanitize(input, { RETURN_TRUSTED_TYPE: true })
});
}

2
goodtube.min.js vendored

File diff suppressed because one or more lines are too long