mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-31 19:27:00 -06:00
Merge pull request #1013 from johankwarnmarksymphony/sda-2094
fix: Disable certificate verification proxy
This commit is contained in:
commit
6e3e53aa38
@ -2,7 +2,7 @@ import { BrowserWindow, WebContents } from 'electron';
|
|||||||
|
|
||||||
import { parse as parseQuerystring } from 'querystring';
|
import { parse as parseQuerystring } from 'querystring';
|
||||||
import { format, parse, Url } from 'url';
|
import { format, parse, Url } from 'url';
|
||||||
import { isDevEnv, isWindowsOS } from '../common/env';
|
import { isWindowsOS } from '../common/env';
|
||||||
import { i18n } from '../common/i18n';
|
import { i18n } from '../common/i18n';
|
||||||
import { logger } from '../common/logger';
|
import { logger } from '../common/logger';
|
||||||
import { getGuid } from '../common/utils';
|
import { getGuid } from '../common/utils';
|
||||||
@ -17,7 +17,7 @@ import {
|
|||||||
import { ICustomBrowserWindow, windowHandler } from './window-handler';
|
import { ICustomBrowserWindow, windowHandler } from './window-handler';
|
||||||
import {
|
import {
|
||||||
getBounds,
|
getBounds,
|
||||||
handleCertificateProxyVerification,
|
// handleCertificateProxyVerification,
|
||||||
injectStyles,
|
injectStyles,
|
||||||
preventWindowNavigation,
|
preventWindowNavigation,
|
||||||
} from './window-utils';
|
} from './window-utils';
|
||||||
@ -211,9 +211,9 @@ export const handleChildWindow = (webContents: WebContents): void => {
|
|||||||
handleChildWindow(browserWin.webContents);
|
handleChildWindow(browserWin.webContents);
|
||||||
|
|
||||||
// Certificate verification proxy
|
// Certificate verification proxy
|
||||||
if (!isDevEnv) {
|
// if (!isDevEnv) {
|
||||||
browserWin.webContents.session.setCertificateVerifyProc(handleCertificateProxyVerification);
|
// browserWin.webContents.session.setCertificateVerifyProc(handleCertificateProxyVerification);
|
||||||
}
|
// }
|
||||||
|
|
||||||
// Updates media permissions for preload context
|
// Updates media permissions for preload context
|
||||||
const { permissions } = config.getConfigFields([ 'permissions' ]);
|
const { permissions } = config.getConfigFields([ 'permissions' ]);
|
||||||
|
Loading…
Reference in New Issue
Block a user