AWS Cloudfront (with WAF) + API Gateway: how to force access through Cloudfront?

前端 未结 4 2014
清歌不尽
清歌不尽 2021-02-02 16:01

I want to put WAF in front of API Gateway, and with the (little) info I find that is only possible by manually putting an extra Cloudfront distribution with WAF enabled, in fron

4条回答
  •  感动是毒
    2021-02-02 16:23

    I am from API Gateway.

    Unfortunately, the best solution we have as of now is, to inject an origin custom header in CloudFront and validate that in a custom authorizer (option 4 in your question).

    We are already aware of this limitation and not-so-great workaround. We are looking to provide better WAF integration in future, but we do not have an ETA.

提交回复
热议问题