Add iframe sandboxing

This commit is contained in:
Nicholas Jitkoff 2018-07-06 07:04:06 -07:00
parent 31dad5a7eb
commit 1d77ac5829
2 changed files with 3 additions and 2 deletions

View file

@ -9,7 +9,7 @@
#edit {font-family:monospace; font-weight:bold;color:rgba(0,0,0,0.54); position:absolute;z-index:100;position:absolute;top:0.85em; right:1em; display:none;}
#edit:not(:hover) {text-decoration:none;}
</style>
<iframe id="iframe"></iframe>
<iframe id="iframe" sandbox="allow-scripts allow-forms allow-top-navigation allow-popups allow-modals"></iframe>
<a id="edit">edit</a>
<script type="text/javascript">
function showEdit(editable) {

View file

@ -2,4 +2,5 @@ CACHE MANIFEST
CACHE:
/
# v.3