How can I get my local or dockerized Theia to use https?March 4, 2020 at 6:43pm (Edited 3 years ago)
My extension's webviews don't work when I run theia locally, but they do work when I run it in Theia in Che. I suspect the difference is because in che we're using https. How do I get local theia to use https?
March 4, 2020 at 6:45pm
March 5, 2020 at 8:04am
Please look through https://spectrum.chat/thread/41a2d782-8405-4d19-942e-e66076c34f49.https://spectrum.chat/theia/dev/using-vscode-extension-ms-sarifvscode-sarif-viewer-in-local-docker-fails~41a2d782-8405-4d19-942e-e66076c34f49. Similar issue was resolved there.
March 5, 2020 at 8:23pm
After some more testing, the problem is not related to http/s. It is because you are not supposed to subdomain localhost. It works in Chrome because of https://webmasters.stackexchange.com/questions/88636/why-does-chrome-resolve-websitename-localhost-as-localhost but it does not work in other browsers
If you want to reproduce it, you can download my extension here: http://download.eclipse.org/codewind/codewind-vscode/master/latest/codewind.vsix and install it into Theia. It will try to open the home page webview when it activates, and fail.
March 6, 2020 at 8:29am