首页 > 解决方案 > 带有 Amplify 的 GraphQL 为 React App 提供 401 Unauthorized(使用 Cognito 添加 Auth 之前和之后)

问题描述

我正在尝试使用 Amplify 并尝试创建我的第一个反应应用程序,以获取简单的 Ride 模型。

我总是在本地主机上和托管到 S3 后收到 401 未经授权的错误。

errorType: "UnauthorizedException"
message: "You are not authorized to make this call."

标签: graphqlaws-amplify

解决方案


推荐阅读