Skip to content

Commit

Permalink
Fix cors by disable BrowserWindow webSecurity
Browse files Browse the repository at this point in the history
  • Loading branch information
Yukaii committed Nov 22, 2016
1 parent 364632f commit 2c47a3a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion electron/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ function createWindow () {
icon: __dirname + '/Icon.ico',
darkTheme: true,
autoHideMenuBar: true,
titleBarStyle: 'hidden-inset'
titleBarStyle: 'hidden-inset',
webPreferences: {
webSecurity: false
}
});

// Let us register listeners on the window, so we can update the state
Expand Down

0 comments on commit 2c47a3a

Please # to comment.