1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
0
【以下的回答经过翻译处理】 您可以通过CloudFront将流量发送到您的API Gateway,并使用API密钥保护API Gateway。
所以您将拥有“api.example.com”-> CloudFront(在其中验证cookie并添加X-API-KEY到请求-> API Gateway)。要添加x-api-key,您可以在CloudFront设置中指定它,而无需使用Lambda @ Edge https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/add-origin-custom-headers.html
这里提供了如何使用API Gateway自己的CloudFront分发来配置API Gateway的信息。
관련 콘텐츠
- AWS 공식업데이트됨 일 년 전
- AWS 공식업데이트됨 2년 전
- AWS 공식업데이트됨 일 년 전
- AWS 공식업데이트됨 일 년 전