Skip to content

[mini-browser] html show empty #10605

Answered by paul-marechal
BigGan asked this question in General
Discussion options

You must be logged in to vote

It seems like you are accessing your Theia application through an IP address rather than a domain host.

Whenever we open iframes to render custom content (previews, webviews) we prepend the current hostname with a random sub-domain in order to trigger cross origin protections and isolate the content from the main Theia application context.

Example: localhost:3000 becomes {uuid}.mini-browser.localhost:3000.

This breaks down with IPs because an IP is not a domain name, so it cannot work with sub-domains.

I don't see how to make it work with IPs.

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
4 replies
@BigGan
Comment options

@BigGan
Comment options

@vince-fugnitto
Comment options

@BigGan
Comment options

Comment options

You must be logged in to vote
6 replies
@BigGan
Comment options

@paul-marechal
Comment options

@BigGan
Comment options

@subratkatiyar
Comment options

@JimCSuen
Comment options

Answer selected by paul-marechal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #10604 on January 07, 2022 13:04.