AWS API Gateway 403 Forbidden

帅比萌擦擦* 提交于 2020-06-27 08:33:35

问题


I have created one API in AWS API Gateway. In that API I created one proxy resource with custom http endpoint. But when I access the API Gateway endpoint https://2r3g3ttr6y.execute-api.eu-east-1.amazonaws.com/production/abc/abc.html it is not working whereas the original HTTP endpoint is working perfectly fine.

I get {"message":"Forbidden"} response. Here is the setting:

NOTE: The above API Endpoint is just a dummy endpoint.


回答1:


This thing happened to me in the past because I forget to deploy my API.

Here how I fixed it:

Click Actions dropdown on the top -> Deploy API -> choose [New Stage] -> enter whatever name you want -> Deploy



来源:https://stackoverflow.com/questions/50607864/aws-api-gateway-403-forbidden

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!