title: Forwarding CloudFront Host Header to API Gateway
body: <p>We have a wildcard(*) subdomain pointing to a CloudFront distribution. The origin is API Gateway.</p>
  
  <p>We need to know the original <code>Host</code> header within API Gateway so we can route the requests.</p>
  
  <p>Simply whitelisting the <code>Host</code> header in CloudFront returns an error when accessing the CloudFront distribution via HTTP - presumably because API Gateway needs the <code>Host</code> header to know which API to invoke.</p>
  
  <p>If this is the case, is it possible to forward the <code>Host</code> header via <code>X-Forwarded-Host</code> from CloudFront to the API Gateway? Or... is there an alternative way to use wildcard subdomains with API Gateway?</p>