Add sandboxing to the iframe
This commit is contained in:
parent
9641351ac3
commit
3122a3158f
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ function resizeIframe() {
|
|||
}
|
||||
}
|
||||
</script>
|
||||
<iframe id="bookContent" onload="resizeIframe();" style="width: 100%; border: none;" scrolling="no" src="{{.Content}}" seamless="seamless"></iframe>
|
||||
<iframe id="bookContent" onload="resizeIframe();" style="width: 100%; height: 100%'; border: 0;" scrolling="no" src="{{.Content}}" seamless="seamless" sandbox="allow-same-origin" frameborder=0></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
Reference in a new issue