marczoutendijk / openpoimap

version 1.29d
33 stars 12 forks source link

https://openpoimap.org tries to load from http://overpass-api.de/api/interpreter/ which fails because of the HTTPS/HTTP mismatch #19

Open ms opened 7 months ago

ms commented 7 months ago

This seems related to https://github.com/marczoutendijk/openpoimap/issues/13 but since loading openpoimap.org over HTTPS does work (and is done automatically when using some secure modes in Chrome/Firefox and some extensions), this should probably be fixed.

What I expect: POIs to load when I select them What I see instead: nothing showing up on the map (and no user-visible error message), as well as the following error message (in Chrome)

OpenLayers.js:553 Mixed Content: The page at 'https://openpoimap.org/' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://overpass-api.de/api/interpreter/?data=(node[amenity=hospital](bbox);way[amenity=hospital](bbox);rel[amenity=hospital](bbox););(._;%3E;);out%20center;&bbox=2.2392525634766,48.803494938551,2.3791565856932,48.879077509793'. This request has been blocked; the content must be served over HTTPS.

Note that I confirmed that editing the base URL for overpass-api.de does fix the issue.

Piagno commented 1 month ago

This issue is resolved with commit ea29133

marczoutendijk commented 1 month ago

Hi Flavio,

Just to let you know that as of today the openpoimap sourcecode is now here:

https://github.com/marczoutendijk/marczoutendijk.github.io

Reason for that change is that updating the real openpoimap.org http://openpoimap.org/ which is hosted on a different server, is now easier to do and I no longer need the sysadmin help from that server. Also the merging of a pull request is now easier to perform. In the past I updated my local files to do the update, but in the new situation any change in the github code is directly visible on the web.

Marc.

Piagno commented 1 month ago

Ah okay, thanks!