我可能不了解http/https通信的细节。我有在wildfly和apache上工作的java应用程序。我需要将X-Forwarded-For设置为rest api从客户端发送到服务器的默认标头。我不知道如何设置。我是否需要更改wildfly或apache的配置?
发布于 2020-12-31 06:00:37
您可以使用apache mod_header来设置/更改headers:
Header set MyHeader "Hello Joe. It took %D microseconds for Apache to serve this request."官方文档:https://httpd.apache.org/docs/current/mod/mod_headers.html
https://stackoverflow.com/questions/64597258
复制相似问题