Missing Authentication Token while accessing API Gateway?

前端 未结 18 1495
既然无缘
既然无缘 2020-12-08 12:51

I am trying to call a Lambda Function through AWS API Gateway. When I mention Authentication type NONE it works fine but API become public and anyone with url can access my

18条回答
  •  生来不讨喜
    2020-12-08 13:19

    First of all, check whether the API you created in the lamda function is registered with your AWS project or not. For that, go to the API gateway in your AWS console. If it is not registered, register it. This is the main cause of this issue.

    You can even see in your aws.export.js file, that there are paths corresponding to your API ['/items'].

    Your API must be present there, otherwise it will not append the security token to requests. Just register it in your project cloud-logic in your console for this.

    If it's there, then use the above mentioned solution
    http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-use-postman-to-call-api.html

提交回复
热议问题