plotly / jupyterlab-dash

An Extension for the Interactive development of Dash apps in JupyterLab
MIT License
360 stars 57 forks source link

Incompatible with HTTPS #11

Open xhqu1981 opened 5 years ago

xhqu1981 commented 5 years ago

When I test the example notebook in jupyter-dash/notebooks with an SSL enabled JupyterLab. I got an message complaining can't launch insecure connenction inside an secure connection. See the following message from Google Chrome Jave Script Console.

index.js:93 show
index.js:98 Create new widget
index.js:111 Widget was not attached, adding to main area
docklayout.js:455 Mixed Content: The page at 'https://192.168.120.3:8888/lab' was loaded over HTTPS, but requested an insecure resource 'http://localhost:8090/'. This request has been blocked; the content must be served over HTTPS.
lab:1 Mixed Content: The page at 'https://192.168.120.3:8888/lab' was loaded over HTTPS, but requested an insecure resource 'http://localhost:8090/'. This request has been blocked; the content must be served over HTTPS.

OS: Ubuntu 18.04 LTS jupyterlab_dash: 0.1 dash: 0.36.0
dash-core-components: 0.43.0
dash-html-components: 0.13.5
dash-renderer: 0.17.0
dash-table: 3.2.0

jonmmease commented 5 years ago

Hi @xhqu1981,

We've updating the extension to use jupyter-server-proxy which I'm thinking might also take care of this problem. When you have a chance, could you try installing from the latest instructions at https://github.com/plotly/jupyterlab-dash#installation and then try it again? Thanks!