3 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
Have you tried accessing the header via the event? For example below
const response = event.Records[0].cf.response;
const headers = response.headers;
console.log('Headers: "${headers}"');
If you still cant see them log the event and then view the json offline and confirm your header is actually present in the event.
répondu il y a 2 ans
0
Thanks for the response, but no it's not that.
I've created manually a function + λ distro and seems like it logs everything correctly in the freshly created one, in the origin-response
invocation in request.origin.s3.customHeaders
.
répondu il y a 2 ans
Contenus pertinents
- demandé il y a 6 mois
- Réponse acceptéedemandé il y a un an
- demandé il y a un an
- demandé il y a un an
- Comment résoudre les erreurs 500, 502 et 503 causées par les fonctions Lambda@Edge dans CloudFront ?AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans