title: Disable "via" http header in spring boot
body: <p>Please can you help me in disabling the Via http header in spring boot in response. I tried writing some value (My-UI) for via header in SecurityConfig.java but it is not working. In response i have something like </p>
  
  <p>Via : MY-UI, 1.1 xxxx.host.tv </p>
  
  <p>The code I used is </p>
  
  <pre><code>   http.headers().addHeaderWriter(new StaticHeadersWriter("via","MY-UI"))
  </code></pre>
  
  <p>--Editted---
  The code and method</p>
  
  <pre><code>  protected void configure(HttpSecurity http) throws Exception {
  
      http.csrf().disable();
      http.headers().frameOptions().disable();
      http.headers().disable();
  </code></pre>
  
  <p>---Update----
  This works locally. Only when it is deployed to remote server we get the server name is appended. </p>
  
  <p>Regards
  Viji</p>