Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: tidb组件10080端口检测到目标X-Content-Type-Options响应头缺失

A recent security issue encountered:
Vulnerability scanning found that the 10080 port of the TiDB component detected the absence of the X-Content-Type-Options response header. This issue can be manually reproduced using curl -i "http://{tidb-ip-host}:10080/metrics"
.
The current solution we have thought of is enabling TLS between components, which can directly reject non-internal requests, thus solving (or avoiding) this problem. However, enabling TLS between components requires restarting the cluster, which is quite costly.
I would like to ask if there is a solution that can solve this problem at a lower cost?