I have a web mapping client that needs to be secure and use only HTTPS requests for layers. I would like to include some basemaps such as Mapquest OSM and OpenSeaMap which do not (as far as I can see) have a HTTPS urls.

I have a proxy setup but I can't see any option with L.tileLayer to apply it to the layer. Is there a way to call a Leaflet tileLayer through a proxy?

If I use L.esri.tiledMapLayer to call the service I get different errors presumably because these are not ArcServer published services so this is not an option.

2 Answers 2


Have you tried Thunderforest?

The tile URL scheme looks to use https by default: https://[abc].tile.thunderforest.com/cycle/{z}/{x}/{y}.png


I have tried adding a proxy for the layers that are ESRI which will allow a proxy option but it doesn't appear to fool Firefox or Chrome.

The url for the layer is change to https://server/proxy/proxy.ashx?http://server/arcgis/rest/services....but an error appears to say 'Loading mixed (insecure) display content "http://server/arcgis/rest/services..."

When I take out the http for the service url I get Network Error Forbidden error for the layer.

  • This appears to be additional information for the question, and not an answer. You should edit your question and add this information there, and delete this answer.
    – nmtoken
    Apr 13, 2016 at 19:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.