Merge pull request #4371 from h3poteto/fix/cors
Change webSecurity for BrowserWindow to prevent CORS
This commit is contained in:
commit
b115c7aef4
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue