projects
/
oweals
/
peertube.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
(embed) sandbox the iframe
[oweals/peertube.git]
/
client
/
src
/
assets
/
player
/
utils.ts
diff --git
a/client/src/assets/player/utils.ts
b/client/src/assets/player/utils.ts
index b7cd40aa28e9155577ed49b1f270e1f3b92a33ec..18a6b4dfa48b12d70ed61a1a1aff6b1650da0f82 100644
(file)
--- a/
client/src/assets/player/utils.ts
+++ b/
client/src/assets/player/utils.ts
@@
-92,6
+92,7
@@
function buildVideoLink (time?: number) {
function buildVideoEmbed (embedUrl: string) {
return '<iframe width="560" height="315" ' +
+ 'sandbox="allow-same-origin allow-scripts" ' +
'src="' + embedUrl + '" ' +
'frameborder="0" allowfullscreen>' +
'</iframe>'