Skip to content

Git integration when running theia a host other than localhost. #14709

Answered by msujew
mcg1103 asked this question in General
Discussion options

You must be logged in to vote

Ah, I see, thank you for the information. Yep, that is expected/intended behavior. We (just like VS Code) serve all widget that are contributed via VS Code extensions via iframes on subdomains. This is a security feature to prevent different VS Code extensions from accessing each other's browser storage (for example, so that they don't exfiltrate any cookies/login sessions).

There are two ways to resolve this:

  1. Use a reverse proxy to resolve the subdomains correctly (this is the intended solution).
  2. Set the THEIA_WEBVIEW_EXTERNAL_ENDPOINT env variable to the value {{hostname}}. This will let all webviews access their data via the mark.orderpt.com url, but will lead to the aforementioned se…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

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

Answer selected by mcg1103
@mcg1103
Comment options

@mcg1103
Comment options

@msujew
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants