remove cors headers from LensProxy (#4126)

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen authored and Jim Ehrismann committed 2021-11-01 12:29:32 -04:00
1 parent 65d7fca691
commit 213b556014
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);
}
}