diff options
Diffstat (limited to 'packages/main/src/infrastructure/electron/impl/hardenSession.ts')
-rw-r--r-- | packages/main/src/infrastructure/electron/impl/hardenSession.ts | 14 |
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'; | |||
25 | import { getLogger } from '../../../utils/log'; | 25 | import { getLogger } from '../../../utils/log'; |
26 | import type Resources from '../../resources/Resources'; | 26 | import type Resources from '../../resources/Resources'; |
27 | 27 | ||
28 | import { 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 | */ | ||
35 | export 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 | ||
30 | const log = getLogger('hardenSession'); | 42 | const log = getLogger('hardenSession'); |
31 | 43 | ||