mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
feat: only allow bundled preload scripts (#17308)
This commit is contained in:
committed by
Alexey Kuzmin
parent
3d307e5610
commit
8cf15cc931
@@ -561,6 +561,8 @@ Returns `Promise<void>` - resolves when the session’s HTTP authentication cach
|
||||
Adds scripts that will be executed on ALL web contents that are associated with
|
||||
this session just before normal `preload` scripts run.
|
||||
|
||||
**Note:** For security reasons, preload scripts can only be loaded from a subpath of the [app path](app.md#appgetapppath).
|
||||
|
||||
#### `ses.getPreloads()`
|
||||
|
||||
Returns `String[]` an array of paths to preload scripts that have been
|
||||
|
||||
Reference in New Issue
Block a user