Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is x-Application-Context header?

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?

like image 239
user1493834 Avatar asked Nov 02 '16 12:11

user1493834


1 Answers

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.

like image 74
Anton N Avatar answered Oct 20 '22 02:10

Anton N