remove cors headers from LensProxy (#4126)

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen authored and GitHub committed 2021-10-25 17:42:28 +03:00
1 parent 221ab46540
commit bd7ba9ff43
1 file changed
-4
-4
View File
@@ -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);
}
}