triggerdotdev / jsonhero-web

JSON Hero is an open-source, beautiful JSON explorer for the web that lets you browse, search and navigate your JSON files at speed. 🚀. Built with 💜 by the Trigger.dev team.
https://jsonhero.io
Apache License 2.0
9.01k stars 482 forks source link

feat: use random user agent header when fetching JSON url's #188

Open azzzy opened 1 month ago

azzzy commented 1 month ago

The safeFetch request is sometimes rejected because of the current value of the User-Agent header.

This PR updates it to a newer browser version and also adds a function getRandomUserAgent, which returns random item from a list list with the 100 most often used user agent strings (at the current moment).