1 Answer
- Newest
- Most votes
- Most comments
1
Hello.
Have you configured API Gateway to return CORS headers in responses as described in the documentation below?
Also, is the "Access-Control-Allow-Origin" header configured to allow access from S3?
Does the Lambda function also include "Access-Control-Allow-Origin" in the response header?
https://repost.aws/knowledge-center/api-gateway-cors-errors
Whether or not to set the "Access-Control-Allow-Origin" header in the Lambda response depends on whether you are using "Lambda proxy integration" or not.
I recommend reading the following documentation for more information.
https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-cors.html#apigateway-enable-cors-proxy
Relevant content
- asked 6 months ago
- asked 3 years ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 4 months ago