2 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
Most likely your preflight call is failing:
- Configure your Cloud front to allow OPTION call
- Configure your lambda to handle OPTION call and use Cloudfront response-headers-policies-cors
répondu il y a un an
0
Hi, follow this to enable cors on api level https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-cors.html, as preflight call failing as mentioned above and may need to add origin header to the request.
Unfortunately I cannot use Cloudfront as its basic learner lab. I also tried adding the mentioned policy in my lambda function, but still get same error Here is my lambda function
Contenus pertinents
- Réponse acceptéedemandé il y a 2 ans
- demandé il y a 3 mois
- AWS OFFICIELA mis à jour il y a 3 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
Unfortunately I cannot use Cloudfront as its basic learner lab. I also tried adding the mentioned policy in my lambda function, but still get same error Here is my lambda function