How do you add CloudFront in front of API Gateway

后端 未结 5 1562
情话喂你
情话喂你 2020-11-28 20:49

API Gateway (APIG), while it uses CloudFront (CF) it does not support CDN edge caching. When I configured a CF distribution to use APIG as the custom origin, I get a permiss

5条回答
  •  天命终不由人
    2020-11-28 21:13

    If API Gateway returns a 403 error with:

    Authorization header requires 'Credential' parameter. Authorization header requires 'Signature' parameter. Authorization header requires 'SignedHeaders' parameter. Authorization header requires existence of either a 'X-Amz-Date' or a 'Date' header.

    it can also be that the origin endpoint is incorrect. "API Gateway treats all errors to non-existent paths as 403 permission denied errors rather than a 404 not found error." (see this support thread).

    I got this error and assumed I was incorrectly forwarding the Authorization header, but I had simply misconfigured the origin path.

提交回复
热议问题