sandpack icon indicating copy to clipboard operation
sandpack copied to clipboard

Error when fetching dependencies from private registry

Open WangJiaoJo opened this issue 2 years ago • 0 comments

Bug report

Packages affected

  • [1.19.0 ] sandpack-client
  • [1.19.0 ] sandpack-react

Description of the problem

Mixed Content: The page at 'https://1-19-0-sandpack.codesandbox.io/' was loaded over HTTPS, but requested an insecure resource 'http://0.0.0.0:4873/xxxxxxx'. This request has been blocked; the content must be served over HTTPS.

What were you doing when the problem occurred?

We use the Verdaccio to build a private registry which is http://localhost:4873 (http://0.0.0.0:4873), when the sandbox trying to fetch the dependencies from this registry, there is this error.

What steps can we take to reproduce the problem?

  1. Use Verdaccio to build a private registry.
  2. Publish an NPM package to this registry.
  3. Fetch dependency from this registry with Sandpack.

Your Environment

Software Name/Version
Sandpack-client version 1.19.0
Sandpack-react version 1.19.0
Browser Chrome
Operating System MacOS

WangJiaoJo avatar May 30 '23 09:05 WangJiaoJo