mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-06-28 05:49:35 +00:00
A pseudosafe iframe
This prevents scripts running inside an iframe from inadvertently manipulating the top browsing context. However a malicious script could still remove the sandboxing imposed on it (because the combination of "allow-same-origin" and "allow-scripts" is vulnerable).
This commit is contained in:
@ -69,6 +69,7 @@
|
|||||||
|
|
||||||
<iframe id="content_iframe"
|
<iframe id="content_iframe"
|
||||||
referrerpolicy="same-origin"
|
referrerpolicy="same-origin"
|
||||||
|
sandbox="allow-same-origin allow-scripts"
|
||||||
onload="on_content_load()"
|
onload="on_content_load()"
|
||||||
src="./skin/blank.html?KIWIXCACHEID" title="ZIM content" width="100%"
|
src="./skin/blank.html?KIWIXCACHEID" title="ZIM content" width="100%"
|
||||||
style="border:0px">
|
style="border:0px">
|
||||||
|
Reference in New Issue
Block a user