fix: Remove local network access switch and add insecure content loading

This commit is contained in:
kangfenmao 2025-02-09 10:14:35 +08:00
parent 0a3ad04f12
commit 8c32f51892
2 changed files with 2 additions and 6 deletions

View File

@ -17,11 +17,6 @@ if (!app.requestSingleInstanceLock()) {
// initialization and is ready to create browser windows.
// Some APIs can only be used after this event occurs.
if (process.platform === 'darwin') {
// Enable local network access
app.commandLine.appendSwitch('enable-local-network-access')
}
app.whenReady().then(async () => {
await updateUserDataPath()

View File

@ -61,7 +61,8 @@ export class WindowService {
preload: join(__dirname, '../preload/index.js'),
sandbox: false,
webSecurity: false,
webviewTag: true
webviewTag: true,
allowRunningInsecureContent: true
}
})