aboutsummaryrefslogtreecommitdiffstats
path: root/packages/main/src/infrastructure/electron/impl/hardenSession.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/main/src/infrastructure/electron/impl/hardenSession.ts')
-rw-r--r--packages/main/src/infrastructure/electron/impl/hardenSession.ts18
1 files changed, 15 insertions, 3 deletions
diff --git a/packages/main/src/infrastructure/electron/impl/hardenSession.ts b/packages/main/src/infrastructure/electron/impl/hardenSession.ts
index 10b694a..0574146 100644
--- a/packages/main/src/infrastructure/electron/impl/hardenSession.ts
+++ b/packages/main/src/infrastructure/electron/impl/hardenSession.ts
@@ -22,10 +22,22 @@ import { URL } from 'node:url';
22 22
23import type { Session } from 'electron'; 23import type { Session } from 'electron';
24 24
25import { getLogger } from '../../../utils/log'; 25import getLogger from '../../../utils/getLogger.js';
26import type Resources from '../../resources/Resources'; 26import type Resources from '../../resources/Resources.js';
27 27
28import { DEVMODE_ALLOWED_URL_PREFIXES } from './devTools'; 28/**
29 * URL prefixes Sophie is allowed load in dev mode.
30 *
31 * In dev mode, in addition to the application itself,
32 * Sophie must be able do download and load the devtools and related extensions,
33 * so we have to make exceptions in the UI process request filter.
34 */
35export const DEVMODE_ALLOWED_URL_PREFIXES = [
36 'chrome-extension:',
37 'devtools:',
38 'https://clients2.google.com/service/update2/crx',
39 'https://clients2.googleusercontent.com/crx',
40];
29 41
30const log = getLogger('hardenSession'); 42const log = getLogger('hardenSession');
31 43