mirror of
https://gitee.com/dromara/electron-egg.git
synced 2026-05-14 19:52:10 +08:00
过滤http请求
This commit is contained in:
@@ -55,7 +55,7 @@ module.exports = (appInfo) => {
|
||||
//webSecurity: false,
|
||||
contextIsolation: false, // false->可在渲染进程中使用electronApi,true->需要bridge.js(contextBridge)
|
||||
nodeIntegration: true,
|
||||
preload: path.join(appInfo.baseDir, 'preload', 'bridge.js'),
|
||||
//preload: path.join(appInfo.baseDir, 'preload', 'bridge.js'),
|
||||
},
|
||||
frame: true,
|
||||
show: true,
|
||||
@@ -107,6 +107,12 @@ module.exports = (appInfo) => {
|
||||
formidable: {
|
||||
keepExtensions: true
|
||||
}
|
||||
},
|
||||
filterRequest: {
|
||||
uris: [
|
||||
'favicon.ico'
|
||||
],
|
||||
returnData: '' // 任何数据类型
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user