2 Answers
- Newest
- Most votes
- Most comments
0
Even after mentioning following header on enabling CORS I am getting this why I am not getting that. I am able to send response but not getting it back. When I select option from method section CORS header applied Sucessfully for Get method it always failed.
answered 6 months ago
0
I am not sure about this answer, but did you also select the OPTIONS side? The preflight request is made for OPTIONS in CORS communication. If there are no OPTIONS, OPTIONS should be set automatically, but since there are already OPTIONS, it may not be possible to set them, and an error may occur.
If you can share the details of the error, we can get some more ideas.
FYI
Relevant content
- Accepted Answerasked 6 months ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 3 months ago
It looks like you have successfully configured API Gateway.
As for the problem of CORS communication continuously failing, please open the Network tab of the Developer Tools and check how the request is going. Are you getting a 200 response to OPTIONS?