AWS API Gateway with Angular

前端 未结 5 1805
孤街浪徒
孤街浪徒 2021-01-02 19:10

Has anyone gotten the AWS API Gateway to work with an Angular.js front-end? I have a lambda function that\'s exposed via a POST method in the API Gateway. I set up the hea

5条回答
  •  天命终不由人
    2021-01-02 19:24

    You can 'Enable CORS' feature from AWS API Gateway. Login to your AWS account and navigate to API Gateway. Choose a resource under Resources and choose enable CORS from the actions drop-down menu. This will enable CORS for all the methods on the resource. Please check below link for detail

    https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-cors.html

提交回复
热议问题