graphql - 带有 Amplify 的 GraphQL 为 React App 提供 401 Unauthorized(使用 Cognito 添加 Auth 之前和之后)
问题描述
我正在尝试使用 Amplify 并尝试创建我的第一个反应应用程序,以获取简单的 Ride 模型。
我总是在本地主机上和托管到 S3 后收到 401 未经授权的错误。
errorType: "UnauthorizedException"
message: "You are not authorized to make this call."
解决方案
推荐阅读
- java - 在一个循环或两个单循环中在哈希映射的哈希映射中输入数据
- php - 仅获取具有最新一条评论且声誉超过 5 条的帖子
- angular - 限制日期选择器中的多个日期
- python - 熊猫将列数据转换为日期之后的新列
- angular - Angular ngx-editor 从其他 components.ts 文件中的 app.component.ts 外包配置
- python - ipython笔记本argparse错误
- asp.net - 在控制器(或更高)级别而不是方法级别将 SQL 结果缩小到所有者
- oauth-2.0 - 如何在微服务架构中使用 3rd 方 IDP 实现 OpenID Connect 身份验证
- clojure - 无法将 Clojure 1.7 与 Leiningen 一起使用
- pandas - ImportError:使用 pd.readexcel 读取 .xlsx 文件时安装 xlrd >= 0.9.0 以获得 Excel 支持:以前从未发生过