1 Answer
- Newest
- Most votes
- Most comments
0
I have finally found them. For "origin request" hook they are here: event.Records[0].cf.request.origin.s3.customHeaders and if origin is ALB: event.Records[0].cf.request.origin.custom.customHeaders
answered a year ago
Relevant content
- asked 2 years ago
- Accepted Answerasked 2 years ago
- asked 3 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
Can you share from which object are you trying to read the custom header from?
Sure. event.Records[0].cf.request.headers The same works perfectly for the function for "origin response"