AWS API Gateway endpoint gives CORS error when POST from static site on S3

前端 未结 9 2404
予麋鹿
予麋鹿 2020-12-16 13:45

I have created an API endpoint with Serverless(serverless.com) which I expose through API Gateway. I\'m getting following error though I have enabled CORS from the

9条回答
  •  悲&欢浪女
    2020-12-16 14:08

    I have the this problem...I enable CORS, the Test work as it is sending the headers, but when I call it from my app it fails and no headers found on the response.

    it is because after set CORS you have to DEPLOY the API. I Deplyed the API and everything works great.

提交回复
热议问题