Search code examples
amazon-web-serviceshttp-headersamazon-cloudfront

CloudFront headers are not forwarded correctly


We have a cloudfront configuration for our new application, which is using Referer header. Initially it was not configured to Forward the headers. Then we updated the CloudFront configuration to forward the header.

ForwardedValues:
            QueryString: 'true'
            Cookies:
              Forward: 'all'
            Headers:
              - Referer

But the problem is that the header is forwarded only from some clients. Is there a chance that CloudFront didn't update the settings for every user or might be using a cache. What could be done to check or resolve this issue.


Solution

  • The real issue was not enabling Stickie Sessions.