AntonKhorev left a comment (openstreetmap/openstreetmap-website#6127)
We're using two Wikimedia services her, Wikidata and Commons.
Wikidata usage should be ok except for [user agent
header](https://www.mediawiki.org/wiki/API:Etiquette#The_User-Agent_header):
> It is best practice to set a descriptive User Agent header.
> [...]
> If you are calling the API from browser-based JavaScript, you may not be able
> to influence the User-Agent header, depending on the browser. To work around
> this, use the Api-User-Agent header.
So I guess we should add an `Api-User-Agent` header to the fetch in this PR.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6127#issuecomment-3032945354
You are receiving this because you are subscribed to this thread.
Message ID:
<openstreetmap/openstreetmap-website/pull/6127/c3032945...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev