webcontainer-core icon indicating copy to clipboard operation
webcontainer-core copied to clipboard

The preview url is not showing the project started in web container but redirect to the parent url

Open jorisck opened this issue 10 months ago • 2 comments

Describe the bug

When I launch a server inside a parent view, I got this url:

https://k03e2io1v3fx9wvj0vr8qd5q58o56n-fkdo--3111--d20a0a75.local-corp.webcontainer-api.io

When I copy/paste this url on my browser instead of showing the site launch in the container, he asked me to connect to a project or to define some rules on the browser then just redirect me to the parent website and starting a kind of "poupées russes".

In the past it was working straitforward. Look here: https://youtu.be/q5WnVPwsOFg?si=wMTK2wIYiMMCCmh5&t=903

So what i have to do to fix it please ?

Link to the blitz that caused the error

no

Steps to reproduce

Launch a dev server in the web container, get the url and copy-paste it in a browser.

Expected behavior

opening the site encapsulated in the webcontainer.

Parity with Local

Screenshots

No response

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [e.g. 91.1]

Additional context

No response

jorisck avatar Feb 07 '25 09:02 jorisck

got any solution @jorisck

pranavmappoli avatar Jun 19 '25 07:06 pranavmappoli

no. I just stopped to try to have the url working outside the parent. Here the end result: https://node-in-the-browser.com

jorisck avatar Jul 10 '25 05:07 jorisck