how to make AWS api gateway accept http instead of https

后端 未结 4 2030
醉话见心
醉话见心 2021-02-05 06:35

I have a Lambda function proxied by API Gateway. However, API Gateway only expose https and not http. I searched everywhere but looks like API Gateway is not po

4条回答
  •  旧巷少年郎
    2021-02-05 07:06

    You can put a Cloudfront distribution in front of API Gateway with to following setup:

    • Origin Protocol Policy: HTTPS Only
    • Viewer Protocol Policy: HTTP and HTTPS
    • Forward Headers: None
    • Object Caching: Use Origin Cache Headers

提交回复
热议问题