AWS API Gateway - CORS + POST not working

前端 未结 9 1822
一生所求
一生所求 2020-12-01 10:34

CORS is really driving me crazy and I\'m really out of ideas as of what to try to make it work.

I have created a simple APIG Api with 1 resource cal

9条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-01 11:09

    I had a similar issue - and it had nothing to do with the way that the API was configured or the POST request that I was making on the front-end. What fixed the problem for me was deploying the API on AWS API Gateway. Once you create an API method/resource, and tie them to a lambda function, they do not auto deploy.

    You have to click "Actions" and then "Deploy API" in order to access these MicroServices from the front-end.

提交回复
热议问题