[MM-20350] Block Basic auth for non trusted URLs (#1125)

This commit is contained in:
Devin Binnie
2020-01-09 12:37:57 -05:00
committed by Dean Whillier
parent 867380c1d4
commit 8f45afa080

View File

@@ -356,6 +356,9 @@ function handleAppGPUProcessCrashed(event, killed) {
function handleAppLogin(event, webContents, request, authInfo, callback) {
event.preventDefault();
if (!isTrustedURL(request.url)) {
return;
}
loginCallbackMap.set(JSON.stringify(request), callback);
mainWindow.webContents.send('login-request', request, authInfo);
}