Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to disable WebSecurity along with NodeIntegration enabled #389

Closed
drozdzamadeusz opened this issue Apr 23, 2020 · 1 comment
Closed
Assignees
Labels
Milestone

Comments

@drozdzamadeusz
Copy link

  • 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,
            },
        });
@GregorBiswanger
Copy link
Member

Fixed! Will be released with Electron.NET version 8.31.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants