首页 > 解决方案 > {"message":"Unauthorized"} 在 Cognito Authorizer 中的 API 网关中

问题描述

当我将 cognito 授权方添加到 API Gateway 中定义的 API 时,我收到 {"message":"Unauthorized"} 错误。我做了以下事情:

  1. 配置了 Cognito 授权方
  2. 在 API 方法中添加了 Authorizer
  3. 部署 API

当我点击 API 网址时。我收到 {"message":"Unauthorized"} 错误。我错过了什么吗?

标签: amazon-web-servicesaws-api-gatewayamazon-cognito

解决方案


推荐阅读