Skip to content

Remote widget source provider doesn't work if any security required #10060

@rchiodo

Description

@rchiodo
  1. Remove the CDN sources (make them blank)
  2. Connect to a remote server
  3. Run something that needs a widget
  4. Widget won't be downloaded

Root cause is the remote cdn provider doesn't do anything except pass the URI up to the webview for downloading. This doesn't work because the webview doesn't have the auth headers (or token) to make a valid request.

I think the solution here is to refactor the CDN downloading code to support the server as a CDN source, but then it would make the appropriate requests with the correct headers, download from the remote jupyter server, and copy the source files to the same spot it does for CDNs.

Essentially remove this source provider and have the CDN code also try kernel's baseURL. Meaning the kernel's base URL is always another CDN source.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugipywidgetsRendering, loading, saving, anything to do with IPyWidgetsupstream-vscodeBlocked on upstream VS codeverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions