Skip to content

Conversation

@x1unix
Copy link
Owner

@x1unix x1unix commented Jul 16, 2025

This PR tries to address a problem described in the issue #506

In some rare cases, WAF might reject a AJAX request and require to pass a challenge.
According to Cloudflare blog, this issue can be resolved with Turnstile captcha.

Each time app receive a response with cf-mitigated: challenge header, it should display a Turnstile challenge and on success, retry a request with attached token.

Token should be validated on backend side using private key.

@x1unix x1unix merged commit e5e7f0f into master Jul 16, 2025
1 check failed
@x1unix x1unix deleted the feat/handle-waf-challenge branch July 16, 2025 04:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants