Skip to content

code-server: Not allowed to display insecure content from http://localhost:2718/ #27

@benz0li

Description

@benz0li

Description

Does not work on a non-localhost deployment of code-server, e.g. at https://demo.jupyter.b-data.ch.
ℹ️ This deployment uses Træfik as [front-]proxy1 and for TLS termination.

Reproduce

intro.py.txt

  1. Open https://demo.jupyter.b-data.ch
  2. Sign in with your GitHub account
  3. Select an image and start
  4. Open a Terminal
    • pip install marimo click
  5. Open code-sever
  6. Install the marino extension from VSIX
  7. Upload file intro.py.txt and rename to intro.py
  8. Open file intro.py and start marimo server (edit or run)

Expected behavior

Output can be displayed both in internal and external browser.

Context

https://demo.jupyter.b-data.ch

Browser Output
[Warning] [blocked] The page at https://jupyter.b-data.ch/user/benz0li/test-for-jyio/code-server/stable-0c802ba1652296c79d26ff3e990578e67e6734b1/static/out/vs/workbench/contrib/webview/browser/pre/index.html?id=ab415c6a-f29a-48bf-85d8-8ef42f86a5ac&origin=10019dc9-ce7d-48be-b202-f15aba8dab21&swVersion=4&extensionId=marimo-team.vscode-marimo&platform=browser&vscode-resource-base-authority=vscode-resource.vscode-cdn.net&parentOrigin=https%3A%2F%2Fjupyter.b-data.ch&remoteAuthority=jupyter.b-data.ch was not allowed to display insecure content from http://localhost:2718/.

Footnotes

  1. Other proxies in place: JupyterHub: proxy no. 2; JupyterLab: Jupyter Server Proxy (proxy no. 3); code-server: web app (proxy no. 4)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions