AWS API Gateway No 'Access-Control-Allow-Origin' header is present

后端 未结 5 1656
长发绾君心
长发绾君心 2020-12-05 00:31

I\'m stuck on an issue with API gateway and I\'ve gone through all the other SO answers on this, AWS forums and have been through their docs but still no joy.

I am t

5条回答
  •  隐瞒了意图╮
    2020-12-05 00:40

    If this is still not working for you, be sure to JSON.stringify() your json object if you are using $.ajax. If not, you will still be returned an error that claims to be a CORS-related error. But if you send the same json object using Postman, the request will succeed. Try it out...

提交回复
热议问题