Differences in how Che-Theia Webview works on a single-host mode comparing to a multi-host mode
Depending on which Che deployment strategy is used, single-host or multi-host, there’re differences in how Che-Theia Webview API works.
When Eclipse Che is deployed in a multi-host 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 a 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.