In this PR, we're adding a Bearer token for Map API requests, if available.

Benefits:
- Users behind a shared IP address are less likely to hit rate limiting.
- Higher rate limits for moderators are taken into account.

Tested with anonymous / known user for "Map Data" and single object 
map display. Map requests were  served by a cgimap backend.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/6373

-- Commit Summary --

  * Map API requests with Bearer token

-- File Changes --

    M app/assets/javascripts/index/layers/data.js (1)
    M app/assets/javascripts/leaflet.map.js (2)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/6373.patch
https://github.com/openstreetmap/openstreetmap-website/pull/6373.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6373
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/[email protected]>
_______________________________________________
rails-dev mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to