piwigo-openstreetmap icon indicating copy to clipboard operation
piwigo-openstreetmap copied to clipboard

Map not displaying under any browser

Open bhlevca opened this issue 6 years ago • 1 comments

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 avatar Oct 01 '19 17:10 bhlevca

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.

bhlevca avatar Oct 01 '19 23:10 bhlevca