我在 AWS API Gateway 中创建了一个 API。在该 API 中,我使用自定义 http 端点创建了一个代理资源。但是当我访问 API Gateway 端点时 https://2r3g3ttr6y.execute-api.eu-east-1.amazonaws.com/production/abc/abc.html它不工作,而原始 HTTP 端点工作得很好。
我收到 {"message":"Forbidden"}
回复。这是设置:
注意:上述 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/