Context Isolation Configuration and Security Considerations #670
vijaythecoder
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've been working on integrating additional APIs into NativePHP and noticed that
contextIsolation
is set to false by default in the window configuration.Current Configuration
Even if I try to pass this via
NativeAppServiceProvider
usingwebPreferences([])
its overwritten bydefaultWebPreferences
hereQuestion
What was the reasoning behind setting contextIsolation: false by default? I assume this was a deliberate choice to simplify the API surface for PHP developers.
Context
I'm asking because Electron's default since v12 is
contextIsolation: true
, and when trying to add new APIs using contextBridge, I was not able to expose them properly with the current configuration.Proposed Solution
Beta Was this translation helpful? Give feedback.
All reactions