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

Enable serving framed kepler.gl-jupyter over https #1820

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LangdalP
Copy link

@LangdalP LangdalP commented May 12, 2022

Remove HTTP protocol specifier for stylesheets used in bindings/kepler.gl-jupyter/js/lib/keplergl/components/app.js to select the most appropriate protocol.

This is needed when kepler.gl is served on a website served via HTTPS. Today, this fails since chrome blocks loading of insecure resources when the page is served via HTTPS (Mixed content). However, Firefox and Safari are not as strict as chrome, so this fix is not needed for those browsers.

See image below to see what happened before this fix, included the error messages in the dev console at the bottom.

image

Remove HTTP protocol specifier to select the most appropriate protocol

This is needed when kepler.gl is served on a website served via HTTPS. This is needed since chrome blocks loading of insecure resources when the page is served via HTTPS (Mixed content).

Signed-off-by: Peder Voldnes Langdal <peder.github@langd.al>
@@ -100,11 +100,11 @@ function App() {
<title>Kepler.gl Jupyter</title>
<link
rel="stylesheet"
href="http://d1a3f4spazzrp4.cloudfront.net/kepler.gl/uber-fonts/4.0.0/superfine.css"
href="//d1a3f4spazzrp4.cloudfront.net/kepler.gl/uber-fonts/4.0.0/superfine.css"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe just change this to https:// instead?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is holding up this PR? I have an https jupyterhub environment that would benefit from this fix.

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.

None yet

3 participants