尝试访问自定义域时出现403禁止访问。

0

【以下的问题经过翻译处理】 尝试访问自定义域时,API Gateway REST 响应代码为 403。 已设置 API 映射。 在尝试直接调用 API 时出现以下提示:

{ "Message": "User: anonymous is not authorized to perform: execute-api:Invoke on resource: arn:aws:execute-api:us-east-1:************:xxxxxxxxxx/dev/POST/v1/notification" }

profile picture
專家
已提問 6 個月前檢視次數 24 次
1 個回答
0

【以下的回答经过翻译处理】 您好, 403禁止“anonymous is not authorized to perform: execute-api:Invoke on resource:”错误通常发生在调用者未被授权访问正在使用IAM授权的API, 或API附加有资源策略且该策略未明确允许调用者调用API时。 要了解更多有关解决API Gateway 403错误的信息,请访问链接[1]。此外,为了进一步调查此问题,我们需要更多详细信息。我建议使用以下链接[2]使用AWS高级支持开启支持案例。

参考: [1] 解决403错误 - https://aws.amazon.com/premiumsupport/knowledge-center/api-gateway-troubleshoot-403-forbidden/ [2] 创建支持案例 https://console.aws.amazon.com/support/home#/case/create

profile picture
專家
已回答 6 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南