React SPA + Axios with CF Challenge
Good we have a react app in which we use axios. We have a specific endpoint which gives us a 403 error with the following header "cf-mitigated challenge" along with a cors error. In our app the cors works correctly. Apart from that we have been investing in Turnstile but have not been able to configure it with axios. Does anyone have any idea how to do it? or any repo? Thanks.
2 Replies
Our endpoint uses the cf images api.
Most likely your app returns CORS headers, but the managed challenge page doesn't return them
If you're fine with your images endpoint being a bit vulnerable
You can disable bot fight / bot detection on the specific subdomain / route using a page rule or configuration rule