[openstreetmap/openstreetmap-website] Integrate human-readable wikidata browser plugin (PR #6127)
Anton Khorev
notifications at github.com
Thu Jul 3 16:57:22 UTC 2025
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/c3032945354 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250703/dfe7d39d/attachment.htm>
More information about the rails-dev
mailing list