codemanki / cloudscraper

--DEPRECATED -- 🛑 🛑 Node.js library to bypass cloudflare's anti-ddos page
MIT License
602 stars 140 forks source link

Question: Recommended to use preflight requests for APIs behind Cloudflare? #280

Closed Legogris closed 4 years ago

Legogris commented 5 years ago

I am consuming several APIs (not web pages) which requires cloudscraper to work consistently. So far with the v1 version, I have issuing a preflight request with cloudscraper before every API call and then proceeded to store the returned headers for the actual request, which is fetched normally.

What's the recommended approach here when upgrading to v4 - continue doing that or using the cloudscraper-wrapped request-promise for requesting URLs directly?

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.