what is x-Application-Context header?

两盒软妹~` 提交于 2020-01-12 03:14:32

问题


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?


回答1:


Spring Boot ApplicationContextHeaderFilter does add this header. Class description:

OncePerRequestFilter to add a X-Application-Context header that contains the ApplicationContext ID.

AppliationContext ID is a name for the deployed application that this context belongs to.

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.

Spring Boot resolved issue 1308.



来源:https://stackoverflow.com/questions/40379550/what-is-x-application-context-header

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!