过滤http请求

This commit is contained in:
gaoshuaixing
2022-10-24 15:21:53 +08:00
parent b8e27b294c
commit 5ab62b2d4a

View File

@@ -55,7 +55,7 @@ module.exports = (appInfo) => {
//webSecurity: false,
contextIsolation: false, // false->可在渲染进程中使用electronApitrue->需要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: '' // 任何数据类型
}
};