Cognito _AuthRole role must include permission to call Lambda function. In the README section, please include a note about adding lambda:InvokeFunction permission to the auth role's policy.
{ "Effect": "Allow", "Action": [ "lambda:InvokeFunction" ], "Resource": [ "<ARN OF LAMBDA FUNCTION>" ] }
If this is not added, the user could be getting the following error trying to call the API from a browser:
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. The response had HTTP status code 403.
Cognito _AuthRole role must include permission to call Lambda function. In the README section, please include a note about adding lambda:InvokeFunction permission to the auth role's policy.
{ "Effect": "Allow", "Action": [ "lambda:InvokeFunction" ], "Resource": [ "<ARN OF LAMBDA FUNCTION>" ] }
If this is not added, the user could be getting the following error trying to call the API from a browser: