diff --git a/src/main/index.ts b/src/main/index.ts index 50149226..964a6f8d 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -302,6 +302,8 @@ async function createWindow() { webPreferences: { nodeIntegration: false, contextIsolation: false, + // To prevent CORS in renderer process. + webSecurity: false, preload: path.resolve(__dirname, './preload.js'), spellcheck: spellcheck }