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

CSS issue when running Jupyter in https:// #86

Closed
DruidSmith opened this issue Mar 15, 2017 · 3 comments
Closed

CSS issue when running Jupyter in https:// #86

DruidSmith opened this issue Mar 15, 2017 · 3 comments

Comments

@DruidSmith
Copy link

We are running Jupyter Hub on a server, and the Jupyter url is an https:// url.

When the ArcGIS Python API loads, it runs, but interactive map results don't render properly because the map widget is unable to load the CSS because the python API code references http:// and the browser blocks the mixed content because of the https:// session.

Relevant errors below (with url redacted):

Mixed Content: The page at 'https://****' was loaded over HTTPS, but requested an insecure stylesheet 'http://js.arcgis.com/3.17/esri/css/esri.css'. This request has been blocked; the content must be served over HTTPS.

Mixed Content: The page at 'https://****' was loaded over HTTPS, but requested an insecure stylesheet 'http://js.arcgis.com/3.17compact/dijit/themes/claro/claro.css'. This request has been blocked; the content must be served over HTTPS.

@rohitgeo
Copy link
Contributor

Thanks for reporting this. We've fixed this internally and the fix will be included in the next update. Till then, you can use the workaround of editing custom.css and using the lines below:

@import url("//js.arcgis.com/3.17/esri/css/esri.css");
@import url("//js.arcgis.com/3.17compact/dijit/themes/claro/claro.css");

instead of

@import url("http://js.arcgis.com/3.17/esri/css/esri.css");
@import url("http://js.arcgis.com/3.17compact/dijit/themes/claro/claro.css");

You'd have to find and change custom.css where it's deployed on your server. It's included in the arcgis (widget) folder that gets deployed to the nbextensions directory.

@DruidSmith
Copy link
Author

DruidSmith commented Mar 16, 2017 via email

@DruidSmith
Copy link
Author

This interim fix has been working great for us. Thanks again Rohit.

@AtmaMani AtmaMani closed this as completed Apr 4, 2017
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

No branches or pull requests

3 participants