title: Accessing cloudfront-viewer-country header in AWS API Gateway using HTTP Proxy?
body: <p>I'm using AWS API Gateway and its HTTP Proxy.</p>
  
  <p>I need to pass the <code>CloudFront-Viewer-Country</code> header to my endpoint. I tried following the same setup outlined in the following question
  <a href="https://stackoverflow.com/questions/35017297/access-headers-in-aws-api-gateway-using-http-proxy">Access headers in AWS API Gateway using HTTP Proxy?</a></p>
  
  <p>and I'm getting the following headers on my endpoint server.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>Array
  (
      [host] =&gt; example.com
      [Accept] =&gt; application/json
      [User-Agent] =&gt; AmazonAPIGateway_c8752844lh
      [x-amzn-apigateway-api-id] =&gt; c8752844lh
      [X-Amzn-Trace-Id] =&gt; Root=1-59bd7a5e-003ef07b3c4c3680299801f1
      [X-Forwarded-For] =&gt; xx.xxx.xx.xxx
      [X-Forwarded-Port] =&gt; 443
      [X-Forwarded-Proto] =&gt; https
      [Connection] =&gt; keep-alive
  
  )</code></pre>
  </div>
  </div>
  </p>
  
  <p>However, the <code>CloudFront-Viewer-Country</code> is not among them. If I used a lambda function instead of HTTP Proxy, I can see a lot more headers (including the <code>CloudFront-Viewer-Country</code>).</p>
  
  <p>Could anyone please tell me how to access the required header on my endpoint using HTTP Proxy ? </p>