amazon-web-services - AWS API 网关 403 禁止

标签 amazon-web-services aws-api-gateway api-gateway

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

我收到 {"message":"Forbidden"}回复。这是设置:

enter image description here

注意:上述 API 端点只是一个虚拟端点。

最佳答案

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

这是我如何修复它:

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

关于amazon-web-services - AWS API 网关 403 禁止,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50607864/

相关文章:

amazon-web-services - AWS : APIGateway custom response regex fails to match

node.js - 使用 elasticsearch 客户端时主机 header 无效

node.js - 如何从 Node Web 应用程序正确访问 AWS Api Gateway

amazon-web-services - AWS Cloudformation 上的 Content-Type 出现错误

amazon-web-services - 部署到不同阶段时无服务器共享 API 网关错误

spring - 无法推断基本 URL。当使用动态 servlet 注册或 API 位于 API 网关后面时,这种情况很常见

amazon-web-services - 如何为 Amazon EC2 上的应用程序设置自定义域?

ruby - Capistrano 部署 SSHKit::Runner::ExecuteError:rake 退出状态:1

amazon-web-services - 如何构建 SNS 过滤策略以匹配部分 S3 对象键

node.js - 高性能 API 可处理许多请求