Skip to content

Unable to disable WebSecurity along with NodeIntegration enabled #389

@drozdzamadeusz

Description

@drozdzamadeusz
  • Version: 7.30.2
  • Target: Windows

Setting NodeIntegration to true results in overwriting all other options in WebPreferences to its defaults. So it is impossible to use NodeIntegration = true along with WebSecurity = false, because WebSecurity value will be ignored.

Steps to Reproduce:
This can be reproduced using simple new generated electron app

        await Electron.WindowManager.CreateWindowAsync(new BrowserWindowOptions
        {
            Show = true,
            WebPreferences = new WebPreferences
            {
                AllowRunningInsecureContent = true,
                WebSecurity = false,
                NodeIntegration = true,
            },
        });

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions