Piwigo / piwigo-openstreetmap

OpenStreetMap integration for Piwigo
http://piwigo.org/ext/extension_view.php?eid=701
GNU General Public License v3.0
35 stars 35 forks source link

Map not displaying under any browser #175

Open bhlevca opened 5 years ago

bhlevca commented 5 years ago

I have a similar problem with issue #57 being behind ha_proxy. All the plugins seem to work fine but openstreetmaps do not show in any browser.

Below is the important lines form the Network tab

200 GET site.com picture.php?/16921/category/297 document html 12.12 kB 66.28 kB 237 ms blocked GET site.com. leaflet.js script Mixed Block
blocked GET site.com. leaflet.js script Mixed Block

I am using Piwigo 2.9.5 and plugin 2.9.a from Piwigo plugin repository.

Any thoughts ?

bhlevca commented 5 years ago

I think that I found the problem. It is mixed content that the browser has issues with. I think that the leaflet.js may have some http:// somewhere, which is not translated in https://

I found a temporary fix to force all the requests in ha_proxy.cfg: rspadd Content-Security-Policy:\ upgrade-insecure-requests

I still think that an investigation into leaflet.js code may be worth pursuing.