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
This commit is contained in:
Aiz 2022-09-26 20:16:38 +00:00 committed by GitHub
parent fa8d423bc6
commit 148db553f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 5 deletions

View File

@ -45,11 +45,6 @@ function runApp() {
let mainWindow let mainWindow
let startupUrl 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-accelerated-video-decode')
app.commandLine.appendSwitch('enable-file-cookies') app.commandLine.appendSwitch('enable-file-cookies')
app.commandLine.appendSwitch('ignore-gpu-blacklist') app.commandLine.appendSwitch('ignore-gpu-blacklist')