2 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
1
Hey the way I found to solve it is to put Cloudfront distribution in front of the app-sync one. You can configure this new CF distribution to include the headers so they can be used in the resolvers.
P.S.: AWS it would be nice to be able to to configure the header behavior of the CF you guys create for the AppSync instance so we do no need to do this :)
répondu il y a un an
0
You can access all request headers via the $context.request.headers construct.
répondu il y a un an
Hi thanks - yes we know this, but the point is it doesn't include all the headers from cloudfront.
e.g. we get
cloudfront-viewer-country
but notcloudfront-viewer-country-region
Contenus pertinents
- demandé il y a 7 mois
- demandé il y a un an
- demandé il y a 2 mois
- 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 un an
- AWS OFFICIELA mis à jour il y a 2 ans
Thanks - yeah, this is what we've ended up doing by adding a kind of reverse proxy to our front end's cloudfront dist.