Enable Response Body in APM securely?

Looking for enabling the APM Response body from Kibana or Observability UI instead of code

if not possible then how we can do it code but securely.

Kibana version: 9.3.4

Elasticsearch version: 9.3.4

APM Server version: v9.3.4

APM Agent language and version: nodejs (4.15.0, 4.6.0) , java (1.54.0,1.50.0) , opentelemetry/swift (1.6.0)

Application Frameworks: express (4.18.2,4.19.2), java ( java language 21.0.3), kafka, opentelemetry/swift

I think you are looking for some of these options: HTTP configuration options | APM Java agent - if not, please clarify your question further