[che-theia] - open http preview in separate browser tab
See original GitHub issueIs your enhancement related to a problem? Please describe.
This issue https://github.com/eclipse/che/issues/17840 will introduce option to expose user applications on subdomains in single-host mode. As we typically don’t have certificate for such subdomains, so we’re exposing those ports on HTTP only. As a result of that, che-theia can’t show the preview, because HTTP content can’t be loaded from HTTPS page.
Bonus task/question (is this for separate issue?):
In case of endpoint with attribute protocol: 'https'
, it’s exposed on HTTPS, but without valid certificate (we don’t have one for subdomains in single-host). In that case, the “Potential security issue” browser page is shown. However, you can’t “accept the risk” from the preview directly (I guess some browser security feature). You have to again open the URL in separate tab, then you can click the “accept the risk” button, and only then you can load the page in che-theia preview again. Can we do anything here to improve the user experience?
Describe the solution you’d like
Che-theia should open HTTP URLs in new browser tab, instead of in-editor preview. In theory, when che-theia is on HTTP as well, it will work, but I guess we don’t support that anymore.
Describe alternatives you’ve considered
n/a
Additional context
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (7 by maintainers)
Top GitHub Comments
I’m closing it as non relevant. Feel free to open it if the problem is still present.
Even when I installed
http-server
by hands, it works over HTTPS@sparkoo could you check the issue again?