You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LeafletJS does not work on the production web page on https://wann-soll-ich-lüften.de/, because the URL of the stylesheet and script is referenced with http instead of https. Browsers do not load resources from http urls if the web page uses https.
The map does therefore only work on localhost, because localhost uses http instead of https.
Hi! Thank you for your hint! I also wondered why the card didn't work. But I haven't looked into it much. Unfortunately I don't know Java Script. I just took the code from the documentation. When I tested the version, everything worked. If you want I would ask you if you want to fix the bug! I wouldn't pay though as we don't make any money from the site. I would put you in the credits though. There were three of us when Hackt was a youth. I was responsible for the backend and not the frontend. So I'm very unquestioning about this bug.
LeafletJS does not work on the production web page on https://wann-soll-ich-lüften.de/, because the URL of the stylesheet and script is referenced with
http
instead ofhttps
. Browsers do not load resources from http urls if the web page uses https.The map does therefore only work on localhost, because localhost uses http instead of https.
wann-soll-ich-lueften.de/server/templates/main.html
Line 58 in 885abc0
wann-soll-ich-lueften.de/server/templates/main.html
Line 59 in 885abc0
However, you're using an old CDN which does not support https. Use the new CDN from the LeafletJS docs:
https://leafletjs.com/download.html#using-a-hosted-version-of-leaflet
Other than that: Cool project, looking forward to how it will develop!
The text was updated successfully, but these errors were encountered: