admin管理员组

文章数量:815041

无法在Electron BrowserWindow中解决Google reCAPTCHA

[在我的电子应用程序中,我尝试打开一个外部网站(例如BrowserWindow.lodUrl('www.abc.xyz')),该网站受Google的reCAPATCHA保护。带有页面的浏览器窗口是打开的,因此用户可以解决验证码,并且它不像机器人。

但是以某种方式,对reCAPTCHA验证请求的唯一响应是

)]}'
["rresp",null,null,null,null,null,1]

也不会出现“路牌”或“交叉”选择的reCAPTHCA弹出窗口。

另外,我在控制台中收到警告

A cookie associated with a cross-site resource at / was set without the `SameSite` attribute. 
A future release of Chrome will only deliver cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. 
You can review cookies in developer tools under Application>Storage>Cookies and see more details at  and .
回答如下:

您是否在整个应用中保持会话状态?您的Cookie可能与他们想要的不匹配。

本文标签: 无法在Electron BrowserWindow中解决Google reCAPTCHA