From fac48f9aad17e3b59b96423e9a3bf7f4d2ba58a0 Mon Sep 17 00:00:00 2001 From: Artem Zatsarynnyi Date: Sat, 28 Dec 2019 16:22:07 +0200 Subject: [PATCH 1/2] Add Che Theia editor endpoint to expose the plugins' webviews on a different origin to make them isolated from Che Theia origin Signed-off-by: Artem Zatsarynnyi --- v3/plugins/eclipse/che-theia/next/meta.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/v3/plugins/eclipse/che-theia/next/meta.yaml b/v3/plugins/eclipse/che-theia/next/meta.yaml index bf16e12caa..7b73e921ce 100644 --- a/v3/plugins/eclipse/che-theia/next/meta.yaml +++ b/v3/plugins/eclipse/che-theia/next/meta.yaml @@ -21,6 +21,16 @@ spec: secure: true cookiesAuthEnabled: true discoverable: false + - name: "webviews" + public: true + targetPort: 3100 + attributes: + protocol: http + type: ide + secure: true + cookiesAuthEnabled: true + discoverable: false + unique: true - name: "theia-dev" public: true targetPort: 3130 From 2480d4360646655e10f8dd3cc9e08773865ddbd7 Mon Sep 17 00:00:00 2001 From: Artem Zatsarynnyi Date: Wed, 8 Jan 2020 10:59:16 +0200 Subject: [PATCH 2/2] Fix 'webviews' endpoint type Signed-off-by: Artem Zatsarynnyi --- v3/plugins/eclipse/che-theia/next/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v3/plugins/eclipse/che-theia/next/meta.yaml b/v3/plugins/eclipse/che-theia/next/meta.yaml index 7b73e921ce..cd8f30374b 100644 --- a/v3/plugins/eclipse/che-theia/next/meta.yaml +++ b/v3/plugins/eclipse/che-theia/next/meta.yaml @@ -26,7 +26,7 @@ spec: targetPort: 3100 attributes: protocol: http - type: ide + type: webview secure: true cookiesAuthEnabled: true discoverable: false