Ignore CORS & SSL (#23)

* Add toggle to ignore CORS

* Add option to ignore SSL
This commit is contained in:
Jeff
2023-02-10 11:53:26 -08:00
committed by GitHub
parent 8eec6b6b8a
commit c878e36015
5 changed files with 83 additions and 20 deletions
+5
View File
@@ -31,6 +31,10 @@ export default class AppUpdater {
}
}
if (store.get('ignore_ssl')) {
app.commandLine.appendSwitch('ignore-certificate-errors');
}
let mainWindow: BrowserWindow | null = null;
if (process.env.NODE_ENV === 'production') {
@@ -85,6 +89,7 @@ const createWindow = async () => {
preload: app.isPackaged
? path.join(__dirname, 'preload.js')
: path.join(__dirname, '../../.erb/dll/preload.js'),
webSecurity: store.get('ignore_cors') ? false : undefined,
},
width: 1440,
});