- In your API Gateway, create a base path
/authand then create a proxy path
- When creating the proxy path, enable both
Enable API Gateway CORSand
Configure as proxy resource.
- Create a POST method for the proxy route and associate the Auth APIs lambda function created in this step
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.
- When enabling CORS for the proxy path, make sure to do the following:
rid,fdi-version,anti-csrf,st-auth-modeto the existing
'true'. Don't miss out on those quotes else it won't get configured correctly.