Executes in Electron's privileged context with access to both Node.js and limited
renderer process APIs. Establishes a secure bridge between main and renderer processes
via the contextBridge API.
Primary responsibilities:
Expose IPC channels to renderer process through a controlled interface
Maintain security by preventing direct access to Node.js from the renderer
Description
Electron Preload Script
Executes in Electron's privileged context with access to both Node.js and limited renderer process APIs. Establishes a secure bridge between main and renderer processes via the contextBridge API.
Primary responsibilities:
Source