什么是 x-Application-Context 标头? [英] what is x-Application-Context header?
问题描述
这个响应头(x-Application-Context)代表什么?它特定于 Spring 框架吗?
What is this response header (x-Application-Context) stands for? is it specific to Spring framework?
下面的标题是什么意思?
what does the below header means?
X-Application-Context airtel-project-service:aws:27094
它是否会泄露任何敏感信息,例如主机名或端口号?
does it reveals any senstive information like hostname or port number?
推荐答案
Spring Boot ApplicationContextHeaderFilter 确实添加了这个标题.类说明:
Spring Boot ApplicationContextHeaderFilter does add this header. Class description:
OncePerRequestFilter 添加包含 ApplicationContext ID 的 X-Application-Context 标头.
OncePerRequestFilter to add a X-Application-Context header that contains the ApplicationContext ID.
AppliationContext ID
是此上下文所属的已部署应用程序的名称.
AppliationContext ID
is a name for the deployed application that this context belongs to.
您可以通过将 management.add-application-context-header
属性设置为 false
来更改默认行为.
You can change the default behavior by setting management.add-application-context-header
property to false
.
management.add-application-context-header=true # Add the "X-Application-Context" HTTP header in each response.
这篇关于什么是 x-Application-Context 标头?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!