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

Cdn via https #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Cdn via https #2

wants to merge 2 commits into from

Conversation

pjwickman
Copy link

Starting with Chrome 50 (released 04/20/2016) Chrome no longer supports obtaining the user’s location using the HTML5 Geolocation API from pages delivered by non-secure connections. This means that the page that’s making the Geolocation API call must be served from a secure context such as HTTPS.

https://developers.google.com/web/updates/2016/04/geolocation-on-secure-contexts-only

Can't just switch to HTTPS for the building reporter app because the Leaflet CDN does not (currently) support HTTPS access

Switching to cdnjs fixed the problem. Side effect is that the MQ OSM tiles are still loaded via http, leading to some Mixed Content messages. Not sure if those are available via HTTPs, haven't tried looking.

A more elegant solution would be to detect if the app was loaded via HTTP or HTTPS and load Leaflet from the appropriate CDN

@bmcbride
Copy link
Owner

Hey Paul,

I don't think this commit pertains to this PR: 659f821. If you want to remove it, I'll merge in your changes. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants