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

Not working in localhost #1072

Open
1 of 2 tasks
luin opened this issue Feb 1, 2024 · 0 comments
Open
1 of 2 tasks

Not working in localhost #1072

luin opened this issue Feb 1, 2024 · 0 comments
Labels
bug Something isn't working triage New issues that needs consideration

Comments

@luin
Copy link

luin commented Feb 1, 2024

Bug report

Packages affected

  • sandpack-client
  • sandpack-react

Description of the problem

Safari doesn't allow loading https content when the host location is http. Due to the fact, when running a site locally at http://localhost:port, Safari refuses to display the preview.

CleanShot 2024-02-01 at 13 21 11@2x

I tried setting up a local proxy and specifying bundleURL, however, looks like Sandpack added a random ID to the hostname, so if the bundleURL is set to http://localhost:port, the final endpoint becomes http://randomid-localhost:port.

Your Environment

Software Name/Version
Sandpack-client version
Sandpack-react version 2.11.3
Browser Safari 17
Operating System macOS
@luin luin added bug Something isn't working triage New issues that needs consideration labels Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage New issues that needs consideration
Projects
None yet
Development

No branches or pull requests

1 participant