Open History to see the last commit
1/**
2 * - `sandbox=true`: keeps the OS-level renderer sandbox enabled. Critical
3 * when paired with `contextIsolation=false` — without sandbox, the preload
4 * has full Node access (`require`, `fs`, `child_process`, ...) and that
5 * `require` would land on the page's shared `globalThis`, giving any
6 * third-party page in the preview full Node + IPC access to the host.
7 */
8export const PREVIEW_WEBVIEW_PREFERENCES =
9 "contextIsolation=false,sandbox=true,nodeIntegration=false";