remove cors headers from LensProxy

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen committed 2021-10-25 14:01:48 +03:00
1 parent 5bdebfda43
commit aed282b512
1 file changed
-4
-4
View File
@@ -200,10 +200,6 @@ export class LensProxy extends Singleton {
const proxyTarget = await this.getProxyTarget(req, cluster.contextHandler); const proxyTarget = await this.getProxyTarget(req, cluster.contextHandler);
if (proxyTarget) { 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); return this.proxy.web(req, res, proxyTarget);
} }
} }