]> git.openstreetmap.org Git - rails.git/commit
Use POST for geocoder backends
authorTom Hughes <tom@compton.nu>
Tue, 7 Mar 2023 17:24:48 +0000 (17:24 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 7 Mar 2023 17:24:48 +0000 (17:24 +0000)
commit8919c8c40416a70e1a5516f03e2628c5dd380d40
tree75436eafe7ef63772a69ad2dae88bd752be576ca
parent2e5e2bc26349030ac1330630a804b4e41a9a73fb
Use POST for geocoder backends

The geocoder backend calls are a private implementation detail
and using POST enables request forgery checks and makes scraping
of nominatim via the backend calls harder.
app/assets/javascripts/index/search.js
config/routes.rb
test/controllers/geocoder_controller_test.rb