Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LeafletJS does not work on production server #1

Closed
SehrGuterCode opened this issue Mar 19, 2023 · 2 comments · Fixed by #2
Closed

LeafletJS does not work on production server #1

SehrGuterCode opened this issue Mar 19, 2023 · 2 comments · Fixed by #2
Assignees
Labels
bug Something isn't working

Comments

@SehrGuterCode
Copy link
Contributor

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.

<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.5/leaflet.css" />

<script src="http://cdn.leafletjs.com/leaflet-0.7.5/leaflet.js"></script>

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!

@LuisSchuimer LuisSchuimer self-assigned this Mar 19, 2023
@LuisSchuimer LuisSchuimer added the bug Something isn't working label Mar 19, 2023
@LuisSchuimer LuisSchuimer pinned this issue Mar 19, 2023
@LuisSchuimer
Copy link
Collaborator

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.

Thanks!
Luis Schuimer

@SehrGuterCode
Copy link
Contributor Author

Addressed in #2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants