Skip to content

Commit 7e57f72

Browse files
committed
fix: allow referrerpolicy on DOMPurify for YouTube
1 parent c74d82c commit 7e57f72

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/services/utilServices/Sanitizer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ DOMPurify.setConfig({
2323
"marginwidth",
2424
"target",
2525
"async",
26+
"referrerpolicy",
2627
],
2728
// required in case <script> tag appears as the first line of the markdown
2829
FORCE_BODY: true,

0 commit comments

Comments
 (0)