How do I solve captchas on a post request?

I have jQuery making a post request to my api. Only some times, jQuery reports an error because the api returns a 403 HTTP error. Looking at the request with Chrome’s developer tools -> response -> I see that Cloudflare is requesting a captcha to be solved. “Please enable cookies. One more step Please complete the security check to access <website.com>”

How am I supposed to get around this? Again, its a request made by $.post(), so the client doesn’t actually see the captcha page.

How about Firewall Rule with a set of conditions, such as the URL you’re hitting, the POST method, and…a User Agent string? Other conditions, if desired. Then Allow it.

1 Like

This topic was automatically closed after 31 days. New replies are no longer allowed.