Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS API Gateway 403 Forbidden

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:

enter image description here

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

like image 627
user3847894 Avatar asked May 30 '18 14:05

user3847894


1 Answers

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

like image 65
Lê Quang Bảo Avatar answered Oct 18 '22 09:10

Lê Quang Bảo