title: CORS headers coming twice in response
body: <p>Backend app is running on top of micronaut framework. 
  Below is the error which I am getting in response. </p>
  
  <blockquote>
    <p>Access to XMLHttpRequest at 'y' from origin 'x' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header contains multiple values 'x,x', but only one is allowed.</p>
  </blockquote>
  
  <p>When the app is running as a standalone jar , it seems to be working fine. Problem occurs when it is running inside pod. Tried logging inside the pod and ran CURL command over there and it looks double headers are coming there as well. </p>
  
  <p>For Micronaut I have done the below settings.</p>
  
  <pre><code>micronaut:
    server:
       cors:
          enabled: true
  </code></pre>
  
  <p>Can someone point out from where those headers could be added. Ingress controller can be ruled out since in pod I can see double headers.</p>
  
  <p>Did some digging on my own. Below was the analysis. 
  Docker Image build locally give these Headers </p>
  
  <pre><code>HTTP/1.1 200 OK
  Access-Control-Allow-Origin: test.com
  Vary: Origin
  Access-Control-Allow-Credentials: true
  Date: Sat, 1 Feb 2020 13:13:47 GMT
  content-type: application/json
  content-length: 169
  connection: keep-alive
  </code></pre>
  
  <p>While docker Image build via our pipeline and doing curl gives below headers </p>
  
  <pre><code>HTTP/1.1 200 OK
  Access-Control-Allow-Origin: test.com
  Vary: Origin
  Access-Control-Allow-Credentials: true
  Access-Control-Allow-Origin: test.com
  Vary: Origin
  Access-Control-Allow-Credentials: true
  Date: Sat, 1 Feb 2020 13:13:47 GMT
  content-type: application/json
  content-length: 169
  connection: keep-alive
  </code></pre>