Description
I am working with AWS Amplify, I created REST API which invokes AWS Lambda Function. In the event handler we capture the request body details and make a http GET or POST call to the zoom API and return the response to React UI.
Error
The Get method works as expected, it fetches the meeting list based on the user id passed. However, the POST method does not work it neither creates the meeting and no response, Lambda function always enters the catch block and returns empty.
In the UI we receive CORS error.
Which App Type (OAuth / Chatbot / JWT / Webhook)?
We use JWT token for authorization
Which Endpoint/s?
AWS API Gateway is the endpoint we access which invokes Lambda Function.
How To Reproduce (If applicable)
Steps to reproduce the behavior:
- Create an Amplify Project
- Add Rest API > Lambda Function
- Modify Code and Amplify Push
Screenshots (If applicable)
POST Method returns CORS error