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.ts14
1 files changed, 13 insertions, 1 deletions
diff --git a/packages/main/src/infrastructure/electron/impl/hardenSession.ts b/packages/main/src/infrastructure/electron/impl/hardenSession.ts
index 10b694a..53675a7 100644
--- a/packages/main/src/infrastructure/electron/impl/hardenSession.ts
+++ b/packages/main/src/infrastructure/electron/impl/hardenSession.ts
@@ -25,7 +25,19 @@ import type { Session } from 'electron';
25import { getLogger } from '../../../utils/log'; 25import { getLogger } from '../../../utils/log';
26import type Resources from '../../resources/Resources'; 26import type Resources from '../../resources/Resources';
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