Skip to content

Commit

Permalink
Disable websecurity
Browse files Browse the repository at this point in the history
This allows to perform CORS requests to third party interfaces

Change-Id: I5a44fa1154cfc833f72ab262652c65948e531455
  • Loading branch information
awesome-michael committed Jul 9, 2020
1 parent 0b839ff commit 8703b74
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions electron_app/src/electron-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,9 @@ app.on('ready', () => {
// main page from the background script.
contextIsolation: false,
webgl: false,
// disable CORS checks
webSecurity: false,
allowRunningInsecureContent: false,
},
});
mainWindow.loadURL('vector://vector/webapp/');
Expand Down

0 comments on commit 8703b74

Please sign in to comment.