osm-fr / osmose-frontend

Part of osmose that shows results on the website http://osmose.openstreetmap.fr
GNU General Public License v3.0
41 stars 38 forks source link

HTTPS support of API #396

Closed frodrigo closed 2 years ago

frodrigo commented 2 years ago

There is a redirection from HTTPS to HTTP.

Stop this redirection. Even better make it reverse.

frodrigo commented 2 years ago

It is from old URL when redirected to the API

https://osmose.openstreetmap.fr/en/issues/open.csv?zoom=17&item=xxxx&level=1&limit=500&bbox=38.7652587890625%2C8.95019282586578%2C38.7762451171875%2C8.966471298599469

jocelynj commented 2 years ago

Fixed by always redirecting to https, even if the original url was in http

        RewriteRule "^/[a-z_]+/issues/open.(rss|kml|gpx|csv|geojson)" "https://%{SERVER_NAME}/api/0.3/issues.$1" [R,L]