我正在使用Angular httpclient来发出API网关,它会触发lambda获取数据并返回 . 从网络图中,我看到正在返回的数据,但我没有在httpclient get的处理程序中收到数据,就好像发生了错误一样 . 我收到这个错误:

无法加载https://yxalbf1t6l.execute-api.us-east-1.amazonaws.com/dev/todos:请求的资源上没有'Access-Control-Allow-Origin'标头 . 因此不允许原点'http://localhost:4200'访问 .

我根据以下建议在lambda上实现了CORS头设置:API Gateway CORS: no 'Access-Control-Allow-Origin' header

并检查API网关,以便在https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-cors.html的OPTIONS中映射响应

有什么建议?