leaflet-easyPrint
leaflet-easyPrint copied to clipboard
Wont work with HTTPS in chrome.
trying to see if i can use this in my project but unable to get it to work in a HTTPS environment. you can replicate the issues by going to the demo and putting an s in front of http in the address bar. happens in chrome, still works in Firefox.
Thanks for the report @mike16889 - I'll take a look
np. if you need anything from me let me know. it appears to be an issue with mixed content.
Was this resolved? This is a fairly urgent problem.
any updates on this?
Hi,
It's almost 2023 and I still have this issues. Can you answer us plz are you not planning on fixing it?
Same here. The library does not seem to be updated anymore, but feel free to drop in a PR.
EDIT:
After taking a look at this issue, this seems to be irrelevant for the plugin. The requests made to the baselayer URL are what you configure in leaflet. When defining the baselayer (e.g. OpenStreetMap), use https as below:
// Default base layer
private LAYER_DEFAULT: LayerWithMetadata = {
id: 'openstreetmap',
title: 'Open Street Map',
name: 'Open Street Map',
enabled: true,
layer: tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
maxZoom: CapabilitiesService.getMaxZoomLevel(),
attribution: 'Open Street Map'
})
}
I got my answer from this PR on leaflet repo.