[mini-browser] html show empty #10605
-
after I install theia 1.21.0, tested html file and found the mini-browser was empty. Just like this: How can I solve the problem? or something wrong? Thx :) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
@BigGan thank you for the discussion, do you have any additional details to reproduce the issue? Can you confirm if the problem exists when trying I was unable to reproduce: |
Beta Was this translation helpful? Give feedback.
-
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: 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. |
Beta Was this translation helpful? Give feedback.
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.