jsonhero-web icon indicating copy to clipboard operation
jsonhero-web copied to clipboard

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

Open azzzy opened this issue 1 year ago • 0 comments

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).

azzzy avatar Jun 01 '24 15:06 azzzy