Ajax website: Captcha validation on 403 ajax request answer - what's the best solution

What is the best solution for an AJAX website when on some user's requests get a 403 error? How to display it on the website correctly to pass the Cloudflare check during ajax calls?
2 Replies
Ennergizer
Ennergizer12mo ago
PS: without using rules to disable validation checks on ajax urls
joelsz
joelsz12mo ago
The application would check the ajax response status, and if there is a block it would either replace the entire page content with the captcha response, or redirect the full page to the ajax url so the captcha would be displayed for resolution