2

Not seeing the referrer in the documented event structure, and I haven't seen anything in the object in my test lambda - but that's not necessarily an accurate representation of a live request.

Is there a way to determine the referrer in the request inside a lambda@edge. Specifically, I'm working within the ClientRequest.

Randy Hall
  • 7,716
  • 16
  • 73
  • 151
  • Thanks for selecting my answer. I updated it below, you can whitelist it in the Cache Behaviour settings. – hephalump Apr 30 '19 at 19:59

1 Answers1

8

As per the AWS docs here, CloudFront removes the Referer header. If you wish to forward your Referer header you can whitelist it in the Cache Behaviour settings here:

enter image description here

hephalump
  • 5,860
  • 1
  • 22
  • 23