Fail to enable CORS for API Gateway functions

后端 未结 4 871
误落风尘
误落风尘 2021-02-05 04:09

I get

While attempting to enable CORS on API Gateway, why is that and how do I resolve this? These functions are deployed using AWS SAM. But I notice if I crea

4条回答
  •  天涯浪人
    2021-02-05 04:12

    2020 answer: Nowadays, there's an option called HTTP API when creating an API in the dashboard. For this type, I've found the CORS configuration to be much easier. If you have a working API of this type, you just have to click "CORS" under "Develop" in the sidebar, and then add '*' under Access-Control-Allow-Origin.

提交回复
热议问题