Question 169:
You’ve just configured a Lambda function that sits behind the API gateway service. When you try to invoke the Lambda function via the API gateway service from Javascript in your HTML page, you receive the following error. No `Access-Control-Allow-Origin` header is present on the requested resource. Origin `null` is therefore not allowed access. What can be done to resolve this error?
Answer options:
A.Enable CORS for the lambda function. B.Enable CORS for the methods in the API gateway. C.Change the IAM policy for the Lambda function to enable anonymous access. D.Change the IAM policy for the API gateway to enable anonymous access.