leaflet-easyPrint icon indicating copy to clipboard operation
leaflet-easyPrint copied to clipboard

Wont work with HTTPS in chrome.

Open mike16889 opened this issue 7 years ago • 6 comments

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.

mike16889 avatar Oct 23 '17 04:10 mike16889

Thanks for the report @mike16889 - I'll take a look

rowanwins avatar Oct 23 '17 10:10 rowanwins

np. if you need anything from me let me know. it appears to be an issue with mixed content.

mike16889 avatar Oct 23 '17 20:10 mike16889

Was this resolved? This is a fairly urgent problem.

wfield-CUNY avatar Apr 19 '19 11:04 wfield-CUNY

any updates on this?

zaritzki avatar Jun 16 '21 11:06 zaritzki

Hi,

It's almost 2023 and I still have this issues. Can you answer us plz are you not planning on fixing it?

GhadaAJIMI avatar Nov 25 '22 15:11 GhadaAJIMI

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.

morch23mj avatar Mar 07 '23 15:03 morch23mj