Add sandboxing to the iframe

This commit is contained in:
Las Zenow 2014-09-07 00:01:39 -05:00
parent 9641351ac3
commit 3122a3158f

View file

@ -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>