TagSpaces is an offline, open source, document manager with tagging support
disable webSecurity to open images in file props
Stanimir95daa9c9b658
diff --git a/src/main/main.ts b/src/main/main.tsindex c3c12005f..3773281c4 100644--- a/src/main/main.ts+++ b/src/main/main.ts@@ -278,6 +278,7 @@ function createNewWindowInstance(url?) {width: mainWindowState.width,height: mainWindowState.height,webPreferences: {+ webSecurity: false, // todo https://www.electronjs.org/docs/latest/tutorial/security#6-do-not-disable-websecurityspellcheck: true,nodeIntegration: true,webviewTag: true,@@ -390,6 +391,7 @@ const createWindow = async () => {height: mainWindowState.height,icon: getAssetPath('icon.png'),webPreferences: {+ webSecurity: false, // todo https://www.electronjs.org/docs/latest/tutorial/security#6-do-not-disable-websecurityspellcheck: true,nodeIntegration: true,webviewTag: true,