Skip to content

TagSpaces is an offline, open source, document manager with tagging support

sandboxing the odf iframe

uggrockf97bf4a45321
diff --git a/data/ext/editorODF/extension.js b/data/ext/editorODF/extension.js
index 414d0f83c..6f7dd3449 100644
--- a/data/ext/editorODF/extension.js
+++ b/data/ext/editorODF/extension.js
@@ -23,6 +23,8 @@ define(function(require, exports, module) {
var extPath = extensionDirectory+"/index.html";
$('#'+elementID).append($('<iframe>', {
id: "iframeViewer",
+ sandbox: "allow-same-origin allow-scripts",
+ style: "background-color: white",
src: extPath+"?cp="+filePath,
"nwdisable": "",
"nwfaketop": ""