Closed romah1 closed 2 years ago
Hiya, thanks for opening this issue!
I've just fixed this problem in commit c2505f6, as well as republished the change to NPM 2captcha@2.1.10.
When creating a new 'Solver' instance, you now have the option to specify acao properties as the third parameter, as well as it's now enabled by default within all endpoints.
I was using your script in google browser to resolve reCaptcha v3 and always got some CORS error which said that
Access-Control-Allow-Origin
header is missing On 2captcha it is said that ifheader_acao
header is set to 1, in.php will includeAccess-Control-Allow-Origin
header in the response. By default in your script it is set to 0. In.recaptcha
method I can setheader_acao
to 1, but it won't change in.pollResponse
method, which causes the error. Settingheader_acao
to 1 solved the issue for meAlso I would like to know if
action
header in.pollResponse
request needs to be the same asaction
header in the request than.recaptcha
sendsAnyway, thanks a lot for the script, it is really nice