Skip to content

Commit

Permalink
Remove disable CORS Line. issue is fixed upstream (#2623)
Browse files Browse the repository at this point in the history
issue was fixed in electron/electron#25463

it will now be disabled when with webSecurity: false
  • Loading branch information
Aiz0 committed Sep 26, 2022
1 parent fa8d423 commit 148db55
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/main/index.js
Expand Up @@ -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')
Expand Down

0 comments on commit 148db55

Please sign in to comment.