umbrella22

修改出现的跨域问题

正在显示 1 个修改的文件 包含 2 行增加0 行删除
...@@ -10,6 +10,8 @@ function onAppReady () { ...@@ -10,6 +10,8 @@ function onAppReady () {
10 } 10 }
11 11
12 app.isReady() ? onAppReady() : app.on('ready', onAppReady) 12 app.isReady() ? onAppReady() : app.on('ready', onAppReady)
13 +// 由于9.x版本问题,需要加入该配置关闭跨域问题
14 +app.commandLine.appendSwitch('disable-features', 'OutOfBlinkCors');
13 15
14 app.on('window-all-closed', () => { 16 app.on('window-all-closed', () => {
15 // 所有平台均为所有窗口关闭就退出软件 17 // 所有平台均为所有窗口关闭就退出软件
......