context isolation
Electron context isolation separates the page’s JavaScript environment from privileged preload code.
Use this when An Electron renderer needs a small amount of privileged integration.
without the term
“Electron gives a security warning about context isolation. If I turn it on, my page can't call the preload functions anymore. How do I set it up correctly?”
with the term · How do you ask a model for context isolation?
Verify context isolation for this Electron window. Keep Node access out of page code and test the limited bridge with untrusted arguments.
What is context isolation?
Electron runs the page's JavaScript and the preload script in separate contexts. The page only sees the functions the preload exposes through contextBridge.
Why does context isolation matter when vibe coding?
A broad preload bridge can bypass the isolation that the configuration enables.
How do you do context isolation?
Keep isolation enabled and expose only specific validated operations through the supported bridge.
What goes wrong with context isolation?
Assuming context isolation alone supplies every sandbox or authorization property.