-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[electron] fix resolution of hostname placeholder #7823
Conversation
I gave it a try and It did not work for me - still a blank page. No error or warning in either FE or BE logs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forbidden is for sure from this code. Are you sure that the core package recompiled after changes and the application is restarted? |
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
f6449af
to
b50047b
Compare
@marcdumais-work I've just realized that you are probably trying in Gitpod. The issue is that Gitpod is using custom webview hostname pattern which is not based on subdomains, such combination will never work in Electron. I've pushed a commit that make sure that in Electron we only use the default hostname patten which is based on localhost subdomains. |
@marcdumais-work @vince-fugnitto my bad, you should comment out: theia/packages/core/src/electron-node/token/electron-token-backend-contribution.ts Lines 39 to 46 in b50047b
🤦 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merging, but someone has to have a look how to set a token for localhost subdomains as well. |
Thanks @akosyakov - Indeed I was using Gitpod. There was another issue anyway so it would not have worked in any case. I just used Gitpod to test Paul's new PR. The demo Webview worked flawlessly with the new hostname pattern you set :) |
What it does
How to test
theia/packages/core/src/electron-node/token/electron-token-backend-contribution.ts
Lines 39 to 46 in b50047b
Review checklist
Reminder for reviewers