4. Setting Up API Gateway & CORS
#
1) Create Proxy path for Auth APIs- In your API Gateway, create a base path
/auth
and then create a proxy path/auth/{proxy+}
. - When creating the proxy path, enable both
Enable API Gateway CORS
andConfigure as proxy resource
.

#
2) Configure Auth APIs Lambda with API Gateway- Create a POST method for the proxy route and associate the Auth APIs lambda function created in this step

important
When associating the lambda function, enable the Lambda Proxy integration
option if available to chose. This is important because this will tell API Gateway not to modify or transform the incoming request when forwarding it to the lambda function.
#
3) Enable CORS for proxy pathPlease fill the form below to see the code snippet (* = Required)
To learn more about what these properties mean read here.
Website Domain:*

This is the URL of your website.