【问题标题】:Unable to execute POST request on AWS API Gateway无法在 AWS API Gateway 上执行 POST 请求
【发布时间】:2020-07-03 04:20:01
【问题描述】:

我无法使用 CURL 或从 Node 执行以下发布请求 curl -i -H "Host : {id}.execute-api.eu-west-1.awmazonaws.com" -X POST "https://{id}.execute-api.eu-west-1.amazonaws.com/Staging/Generate?user={user}&secret={secret}"。 从 Postman 调用时,相同的 url 有效。 有什么想法吗?

【问题讨论】:

    标签: curl postman aws-api-gateway


    【解决方案1】:

    能否请您详细说明您的 API GW。您的 API Gateway 是否启用了 IAM 身份验证?如果是,您需要进行签名验证 - https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-authentication-HTTPPOST.html

    您需要为您的访问密钥+秘密计算签名并传递给 AWS 以验证签名。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-09-27
      • 2016-03-16
      • 2023-02-14
      • 2020-04-16
      • 2015-11-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多