From bd7ba9ff438a8a952170d59a3a17c00351e56af0 Mon Sep 17 00:00:00 2001 From: Jari Kolehmainen Date: Mon, 25 Oct 2021 17:42:28 +0300 Subject: [PATCH] remove cors headers from LensProxy (#4126) Signed-off-by: Jari Kolehmainen --- src/main/lens-proxy.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main/lens-proxy.ts b/src/main/lens-proxy.ts index 47f4c4756f..7ce2ec29df 100644 --- a/src/main/lens-proxy.ts +++ b/src/main/lens-proxy.ts @@ -200,10 +200,6 @@ export class LensProxy extends Singleton { const proxyTarget = await this.getProxyTarget(req, cluster.contextHandler); if (proxyTarget) { - // allow to fetch apis in "clusterId.localhost:port" from "localhost:port" - // this should be safe because we have already validated cluster uuid - res.setHeader("Access-Control-Allow-Origin", "*"); - return this.proxy.web(req, res, proxyTarget); } }