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

"This browser or app may not be secure" appears again. #54

Open
git37 opened this issue Jul 17, 2023 · 3 comments
Open

"This browser or app may not be secure" appears again. #54

git37 opened this issue Jul 17, 2023 · 3 comments

Comments

@git37
Copy link

git37 commented Jul 17, 2023

"This browser or app may not be secure" appears again. any fix on that?

@namilkimfree
Copy link

Same issue, Does the headless value behave false?

@daniil-steperev
Copy link

Fixed this issue for Google Login page by disabling ContentWindow and Codec plugins. My full code is:

StealthPlugin stealthPlugin = new StealthPlugin();
stealthPlugin.RemoveEvasionByType<ContentWindow>();
stealthPlugin.RemoveEvasionByType<Codec>();

PuppeteerExtra extra = new PuppeteerExtra();
extra.Use(stealthPlugin);

IBrowser browser = await extra.LaunchAsync(new LaunchOptions
{
  Headless = false,
  Args = new []{ "--app=YOUR__URL_TO_GOOGLE_LOGIN_PAGE"},
  ExecutablePath = ChromiumExecutablePath
});

IPage[] browserPages = await browser.PagesAsync();
if (browserPages.Length == 0)
{
  return;
}

IPage googleSignInPage = browserPages[0];
await googleSignInPage.WaitForTimeoutAsync(3000);

await EnterUserEmail(googleSignInPage, email);
await EnterUserPassword(googleSignInPage, password);

@git37
Copy link
Author

git37 commented Aug 15, 2023

Fixed this issue for Google Login page by disabling ContentWindow and Codec plugins. My full code is:

StealthPlugin stealthPlugin = new StealthPlugin();
stealthPlugin.RemoveEvasionByType<ContentWindow>();
stealthPlugin.RemoveEvasionByType<Codec>();

PuppeteerExtra extra = new PuppeteerExtra();
extra.Use(stealthPlugin);

IBrowser browser = await extra.LaunchAsync(new LaunchOptions
{
  Headless = false,
  Args = new []{ "--app=YOUR__URL_TO_GOOGLE_LOGIN_PAGE"},
  ExecutablePath = ChromiumExecutablePath
});

IPage[] browserPages = await browser.PagesAsync();
if (browserPages.Length == 0)
{
  return;
}

IPage googleSignInPage = browserPages[0];
await googleSignInPage.WaitForTimeoutAsync(3000);

await EnterUserEmail(googleSignInPage, email);
await EnterUserPassword(googleSignInPage, password);

Thanks! solved this for me!

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

No branches or pull requests

3 participants