berstend / puppeteer-extra

💯 Teach puppeteer new tricks through plugins.
https://extra.community
MIT License
6.41k stars 739 forks source link

[Bug] Cannot use recaptcha plugin with Google signin page #792

Open NightTsarina opened 1 year ago

NightTsarina commented 1 year ago

Describe the bug

If you try to log in to a Google service when the recaptcha plugin is enabled, you get a "This browser or app may not be secure" error after inputting your username. This seems to be caused by the plugin calling setBypassCSP(true).

I am not sure why CSP needs to be disabled, but it would be great if the code could be adjusted so it is not needed any more.

Versions


  System:
    OS: Linux 6.1 Debian GNU/Linux bookworm/sid
    CPU: (4) x64 Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz
    Memory: 7.15 GB / 15.01 GB
    Container: Yes
    Shell: 5.2.15 - /bin/bash
  Binaries:
    Node: 18.13.0 - /usr/bin/node
    npm: 9.2.0 - /usr/bin/npm
  npmPackages:
    playwright-core: ^1.31.1 => 1.31.1 
    puppeteer: ^19.7.0 => 19.7.0 
    puppeteer-afp: ^1.0.3 => 1.0.3 
    puppeteer-extra: ^3.3.4 => 3.3.4 
    puppeteer-extra-plugin-adblocker: ^2.13.5 => 2.13.5 
    puppeteer-extra-plugin-recaptcha: ^3.6.6 => 3.6.6 
    puppeteer-extra-plugin-stealth: ^2.11.1 => 2.11.1 
    puppeteer-screen-recorder: ^2.1.2 => 2.1.2