Support https queries to API endpoints
wish7code opened this issue · 3 comments
Hey,
currently Overpass queries are sent using unencrypted http (see
) instead of https.This will lead to problems, when leaflet-overpass-layer is rolled out to an https hosts. In such situations browser won't allow leaflet-overpass-layer queries to the endpoint due to mix-content policies (e.g. Firefox error: Loading of mixed active contents "http://overpass-api.de/api/interpreter?data=[out:json];(...);out;" was blocked.) Thus leaflet-overpass-layer won't work on any https site.
Suggestion: change endpoint api to https://overpass-api.de/api ??
Cheers
Toby
Hi @wish7code,
Actually, you can already change the requests endpoint. You only have to set the endPoint option when creating the layer (see all the options in the README).
But the https one might be the default one you're right. I will change that.
Thanks for your feedback!
Done!
You can grab the new version whenever you want.
Thanks Guillaume! Works great..