I am using Angular httpclient to issue get to API Gateway, which triggers lambda to get data and return back. From the network diagram, I am seeing the data being returned but I don't receive the data in my handler of the httpclient get, as if an error occured. And I get this error:
Failed to load https://yxalbf1t6l.execute-api.us-east-1.amazonaws.com/dev/todos: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:4200' is therefore not allowed access.
I've implemented the CORS header setting on lambda per suggestion from: API Gateway CORS: no 'Access-Control-Allow-Origin' header
And checked on API gateway to have response mapped in OPTIONS from https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-cors.html
Any suggestions?