Merge pull request #4371 from h3poteto/fix/cors

Change webSecurity for BrowserWindow to prevent CORS
This commit is contained in:
AkiraFukushima 2023-05-13 09:48:45 +09:00 committed by GitHub
commit b115c7aef4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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
}