禁止使用AWS API Gateway 403 [英] AWS API Gateway 403 Forbidden

查看:477
本文介绍了禁止使用AWS API Gateway 403的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在AWS API Gateway中创建了一个API.在该API中,我创建了一个具有自定义http终结点的代理资源.但是,当我访问API网关端点 https://2r3g3ttr6y.execute-api.eu-east-1.amazonaws.com/production/abc/abc.html 它不起作用,而原始HTTP端点运行得很好.

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.

我得到{"message":"Forbidden"}响应.设置如下:

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

注意:上面的API端点只是一个虚拟端点.

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

推荐答案

这件事在过去曾发生在我身上,因为我忘记了部署我的API.

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

这是我的固定方法:

点击顶部的 Actions 下拉菜单-> 部署API ->选择 [New Stage] ->输入您想要的名称-> 部署

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

这篇关于禁止使用AWS API Gateway 403的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆