yandex-cloud / docs

Yandex Cloud documentation
https://cloud.yandex.ru/docs
Creative Commons Attribution 4.0 International
230 stars 656 forks source link

Fixed handling of response status code in SmartCaptcha examples #789

Closed casnerano closed 4 months ago

casnerano commented 4 months ago

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=ru

Description of changes: in the event of any errors during an HTTP request, or if a response status other than 200 is received, it is better to return false to ensure that the captcha is not bypassed.

yfm-team commented 4 months ago

Все готово! Commit: 74db5415b72f4d61244abd180550ab65be71c1bc Проверьте результат: RU. Check the result: EN.

nadezhdatohtu commented 4 months ago

@casnerano Thank you for the suggestion, but unfortunately we won't to accept the PR, our recommendation is true. In rare cases, there may be backend errors, this shouldn't affect users. Thank you for making the documentation better!