Differences in Che-Theia Webview in single-host mode and multihost mode
Depending on which Che deployment strategy is used, single-host or multihost, there are differences in how Che-Theia Webview API works.
When Eclipse Che is deployed in multihost mode, Webview content is served on a separate origin. That means it’s isolated from the main Che-Theia context. So, a contributed view has no access:
to the top-level DOM
to the Che-Theia state, like local storage, cookies, and so on.
When Eclipse Che is deployed in single-host mode, Webview content is loaded through the same origin as the main Che-Theia context. It means that nothing prevents external content from accessing the main Che-Theia in a browser. So, pay extra attention to what content may be loaded by different Plugins that contribute the Webviews.