From 148db553f5469771c26cdcdde166f39e3afe2c55 Mon Sep 17 00:00:00 2001 From: Aiz <66974576+Aiz0@users.noreply.github.com> Date: Mon, 26 Sep 2022 20:16:38 +0000 Subject: [PATCH] Remove disable CORS Line. issue is fixed upstream (#2623) issue was fixed in https://github.com/electron/electron/pull/25463 it will now be disabled when with webSecurity: false --- src/main/index.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/main/index.js b/src/main/index.js index 4f8e799cb528..d6fe8070abca 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -45,11 +45,6 @@ function runApp() { let mainWindow let startupUrl - // CORS somehow gets re-enabled in Electron v9.0.4 - // This line disables it. - // This line can possible be removed if the issue is fixed upstream - app.commandLine.appendSwitch('disable-features', 'OutOfBlinkCors') - app.commandLine.appendSwitch('enable-accelerated-video-decode') app.commandLine.appendSwitch('enable-file-cookies') app.commandLine.appendSwitch('ignore-gpu-blacklist')